Yaf_Dispatcher::getDefaultModule
PHP function
Edit on GitHub ✎
(Yaf >=3.2.0)
Retrieve the default module name
Description
Yaf_Dispatcher::getDefaultModule(): string|null
Get the default module name, which is used when a module name can not be extracted from the request URI. Defaults to "Index".
Parameters Parameters
Return Values
The default module name, or null if the application is not initialized.
Examples
Yaf_Dispatcher::getDefaultModule example
php
<?php
$app = new Yaf_Application(dirname(__FILE__) . "/conf/application.ini");
var_dump(Yaf_Dispatcher::getInstance()->getDefaultModule());
?>The above example will output something similar to:
output
string(5) "Index"See Also
Yaf_Dispatcher::setDefaultModule