Let's start with the basics, step by step. We are going to work a bit on the
frontend of our component. I think it will be easier to start in the frontend part.
We are going to create a
com_tinynews folder inside our
components folder. Inside this folder, create a
tinynews.php file with the following content:
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); require_once( JPATH_COMPONENT.DS.'controller.php' ); $controller = new TinynewsController(); $controller->execute($task = null);
Again, here we are using the
_JEXEC constant to check if our
file is being called by Joomla!. Then we require the
controller.php file, which we haven't created yet.
JPATH_COMPONENT constant defines the path to our component, ...