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).
The function adds one or more view paths to the controller's stack, in LIFO order.
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.
It checks for a form token in the request. This function is used in conjunction with \JHtml::_('form.token') or \JSession::getFormToken.
It is a method to get a reference to the current view and load it if necessary.
The getTask() gets the last task that is being performed or was most recently performed.
This method unregisters or unmaps a task in the class.
This method registers the default task to perform if a mapping is not found.
This method registers or maps a task to a method in the class.
Set a URL for browser redirection.
Sets the internal message that is passed with a redirect.
This method redirects the browser or returns false if no redirect is set.
Method to get a model object, loading it if required.
Execute a task by triggering a method in the derived class.
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.
Method to get a singleton controller instance.