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

1

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

Read More
2

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
3

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

Read More
4

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

Read More
5

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

Read More
6

This method unregisters or unmaps a task in the class.

Read More
7

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

Read More
8

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

Read More
9

Set a URL for browser redirection.

Read More
10

Sets the internal message that is passed with a redirect.

Read More
11

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

Read More
12

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

Read More
13

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

Read More
14

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
15

Method to get a singleton controller instance.

Read More