Hi, I have a problem in this step:>.
And I don't now why:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\xampp\xampp\htdocs\szymon\application\plugins\AccessCheck.php on line 18
| Code: |
public function preDispatch(Zend_Controller_Request_Abstract $request){
$resource = $request->getControllerName();
$action = $request->getActionName();
$identity = $this->_auth->getStorage()->read();
$role = $identity->role;
if(!this->_acl->asAllowed($role, $resource, $action)){
$request->setControllerName('authentication')
->setActionName('login');
}
}
|
Please help:>
On the occasion a very nice tutorial!
