API15

JController/registerDefaultTask

From Joomla! Documentation

< API15:JController
Revision as of 17:09, 22 March 2010 by Doxiki (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

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

[Edit Descripton]

Template:Description:JController/registerDefaultTask

Syntax[edit]

registerDefaultTask($method)
Parameter Name Default Value Description
$method The name of the method in the derived class to perform if a named task is not found.

Returns[edit]

void

Defined in[edit]

libraries/joomla/application/component/controller.php

Importing[edit]

jimport( 'joomla.application.component.controller' );

Source Body[edit]

function registerDefaultTask( $method )
{
        $this->registerTask( '__default', $method );
}

[Edit See Also] Template:SeeAlso:JController/registerDefaultTask

Examples[edit]

<CodeExamplesForm />