(Yaf >=1.0.0)
Yaf_Controller_Abstract::getModuleName — Get module name
Returns the name of the module the controller belongs to.
This function has no parameters.
Example #1 Yaf_Controller_Abstract::getModuleName() example
<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction() {
// assuming the request was dispatched to the
// default "Index" module
var_dump($this->getModuleName());
}
}
?>The above example will output something similar to:
string(5) "Index"