(Yaf >=1.0.0)
Yaf_Controller_Abstract::getModuleName — Get module name
Returns the name of the module the controller belongs to.
У цієї функції немає параметрів.
Приклад #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());
}
}
?>Поданий вище приклад виведе щось схоже на:
string(5) "Index"