Base Controller

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).

Location: libraries/src/MVC/Controller

Joomla getInstance() Method of Base Controller

Joomla getInstance() Method of Base Controller

Method to get a singleton controller instance.

Continue Reading
Joomla display() Method

Joomla display() Method

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.

Continue Reading
Joomla execute() Method

Joomla execute() Method

Execute a task by triggering a method in the derived class.

Continue Reading
Joomla getModel() Method

Joomla getModel() Method

Method to get a model object, loading it if required.

Continue Reading
Joomla setMessage() Method

Joomla setMessage() Method

Sets the internal message that is passed with a redirect.

Continue Reading
Joomla setRedirect() Method

Joomla setRedirect() Method

Set a URL for browser redirection.

Continue Reading
Joomla getName() Method of Base Controller

Joomla getName() Method of Base Controller

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.

Continue Reading
Joomla getTask() and getTasks() Method

Joomla getTask() and getTasks() Method

The getTask() gets the last task that is being performed or was most recently performed.

Continue Reading
Joomla getView() Method

Joomla getView() Method

It is a method to get a reference to the current view and load it if necessary.

Continue Reading
Joomla checkToken() Method

Joomla checkToken() Method

It checks for a form token in the request. This function is used in conjunction with \JHtml::_('form.token') or \JSession::getFormToken.

Continue Reading
Joomla addViewPath() Method of Base Controller

Joomla addViewPath() Method of Base Controller

The function adds one or more view paths to the controller's stack, in LIFO order.

Continue Reading
Joomla redirect() Method of Base Controller

Joomla redirect() Method of Base Controller

This method redirects the browser or returns false if no redirect is set.

Continue Reading
Joomla registerTask() Method

Joomla registerTask() Method

This method registers or maps a task to a method in the class.

Continue Reading
Joomla registerDefaultTask() Method

Joomla registerDefaultTask() Method

This method registers the default task to perform if a mapping is not found.

Continue Reading
Joomla unregisterTask() Method

Joomla unregisterTask() Method

This method unregisters or unmaps a task in the class.

Continue Reading