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.

Read More

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.

Read More

Joomla execute() Method

Joomla execute() Method

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

Read More

Joomla getModel() Method

Joomla getModel() Method

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

Read More

Joomla setMessage() Method

Joomla setMessage() Method

Sets the internal message that is passed with a redirect.

Read More

Joomla setRedirect() Method

Joomla setRedirect() Method

Set a URL for browser redirection.

Read More

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.

Read More

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.

Read More

Joomla getView() Method

Joomla getView() Method

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

Read More

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.

Read More

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.

Read More

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.

Read More

Joomla registerTask() Method

Joomla registerTask() Method

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

Read More

Joomla registerDefaultTask() Method

Joomla registerDefaultTask() Method

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

Read More

Joomla unregisterTask() Method

Joomla unregisterTask() Method

This method unregisters or unmaps a task in the class.

Read More