Joomla BaseController: It is the base class for a Joomla Controller. Controllers are where you put all the actual code. It provides basic functionality, such as rendering views (displaying templates).
Method to get a singleton controller instance.
Typical view method for MVC based architecture. This function is to provide as a default implementation. In most cases, you will need to override it in your own controllers.
Execute a task by triggering a method in the derived class.
Method to get a model object, loading it if required.
Sets the internal message that is passed with a redirect.
Set a URL for browser redirection.
It is a method to get the controller name. The dispatcher name is set by default parsed using the classname, or it can be set by passing a $config['name'] in the class constructor.
The getTask() gets the last task that is being performed or was most recently performed.
It is a method to get a reference to the current view and load it if necessary.
It checks for a form token in the request. This function is used in conjunction with \JHtml::_('form.token') or \JSession::getFormToken.
The function adds one or more view paths to the controller's stack, in LIFO order.
This method redirects the browser or returns false if no redirect is set.
This method registers or maps a task to a method in the class.
This method registers the default task to perform if a mapping is not found.
This method unregisters or unmaps a task in the class.