Yaf_Dispatcher::getDefaultController
Retrieve the default controller name
Description
public stringnull Yaf_Dispatcher::getDefaultController()
Get the default controller name, which is used when a controller name
can not be extracted from the request URI. Defaults to
"Index".
Parameters
This function has no parameters.
Return Values
The default controller name, or null if the application is not
initialized.
Examples
Example #1 Yaf_Dispatcher::getDefaultController example
<?php
$app = new Yaf_Application(dirname(__FILE__) . "/conf/application.ini");
var_dump(Yaf_Dispatcher::getInstance()->getDefaultController());
?>
The above example will output
something similar to:
See Also
- Yaf_Dispatcher::setDefaultController