| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JController |
registerDefaultTask |
registerDefaultTask() |
Never | Work in Progress |
Register the default task to perform if a mapping is not found.
void registerDefaultTask ( $method )
| $method | string | is a string containing the name of the method in the derived class to perform if a named task is not found. |
The constructor invokes this method in the following way:
Example
$this->registerDefaultTask( 'display' );
This will result in the ‘display’ method being invoked if the execute method is invoked and no matching task is found.