references:joomla.framework:application:jcontroller-__constructTable of Contents
__construct
The class constructor performs the necessary tasks to instantiate the controller. This involves the following steps:
SyntaxJController __construct ( $config )
ExamplesA controller is often instantiated in the component entry point (the admin.component.php or component.php file, where component is the name of the component). This might be done in the following way: Example $controller = new BannersController( array('default_task' => 'click') ); |


