我想对控制器的returnedValue做一些事情,phalcon中的操作是我的代码:
public function afterExecuteRoute(Dispatcher $dispatcher){
$controllerName = $dispatcher->getControllerName();
$actionName = $dispatcher-> getActionName ();
$return = $dispatcher->getReturnedValue();
}
$ return有这个值:
Phalcon\Http\Response Object(
[_sent:protected] =>
[_content:protected] => "{\"_meta\":{\"status\":\"SUCCESS\",\"count\":2}}"
[_headers:protected] => Phalcon\Http\Response\Headers Object
(
[_headers:protected] => Array
(
[Content-Type] => application/json; charset=UTF-8
)
)
[_cookies:protected] =>
[_file:protected] =>
[_dependencyInjector:protected] =>
[_statusCodes:protected] =>
)
如果说
,我如何获得_meta->状态值?Cannot access protected property Phalcon\Http\Response::$_content