(Yaf >=1.0.0)
Yaf_Controller_Abstract::getModuleName — Get module name
Returns the name of the module the controller belongs to.
Diese Funktion besitzt keine Parameter.
Beispiel #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());
}
}
?>Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
string(5) "Index"