public array Asf_Application::getModules(void)
此函数没有参数
获取一个 Asf_Application 对象的配置信息中的 modules
$configs = array(
'asf' => array(
'root_path' => realpath(dirname(__FILE__)),
'modules' => 'aDmin,indEx',
)
);
class IndexService
{
public function indexAction()
{
}
}
$handle = new Asf_Application($configs);
$handle->run();
var_dump($handle->getModules());