MySQL interesse |
|
Ja, daar ben ik wel naar opzoek ja.
Ik heb nu dit stukje (relevante) code:
GastenboekController.php
<?php
$this->user = null;
$this->auth = Zend_Auth::getInstance();
if($this->auth->hasIdentity()) {
$this->user = $this->auth->getIdentity()->role;
}
if($this->acl->isAllowed($this->user, 'gastenboek', 'add')) {
// blablabla
}
else {
$this->_forward('', 'auth'); //to login page
}
?>
<?php $this->user = null; $this->auth = Zend_Auth::getInstance(); if($this->auth->hasIdentity()) { $this->user = $this->auth->getIdentity()->role; } if($this->acl->isAllowed($this->user, 'gastenboek', 'add')) { // blablabla } else { $this->_forward('', 'auth'); //to login page } ?>
AuthController.php
<?php
$action = $this->_request->getActionName();
$controller = $this->_request->getControllerName();
$this->_helper->redirector->gotoSimple($action, $controller); //HIER
?>
<?php $action = $this->_request->getActionName(); $controller = $this->_request->getControllerName(); $this->_helper->redirector->gotoSimple($action, $controller); //HIER ?>
Bij //HIER is er ingelogd en wat er terug gelinkt, maar er wordt dus niet teruggelinkt maar naar auth/ gegaan. |