(Yaf >=1.0.0)
Yaf_Request_Abstract::getModuleName — Retrieve the module name
This function has no parameters.
The module name, or null if not set.
Example #1 Yaf_Request_Abstract::getModuleName() example
<?php
class ProductController extends Yaf_Controller_Abstract
{
public function viewAction()
{
// Assuming the request is /admin/product/view/id/17
var_dump($this->getRequest()->getModuleName());
}
}
?>The above example will output something similar to:
string(5) "Admin"