Table of Contents

registerDefaultTask

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JController Method registerDefaultTask Reference registerDefaultTask() Never Work in Progress

Register the default task to perform if a mapping is not found.

Syntax

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.

Examples

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.