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