Sorry for double post but I think it's more in this part off the function:
if ($this->_auth->hasIdentity()) {
$role = $this->_auth->getIdentity()->role;
} else {
$role = 'guest';
}
$resource = $request->controller;
if (!$this->_acl->has($resource)) {
$resource = null;
}
--
Met vriendelijke groet,
Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
if ($this->_auth->hasIdentity()) {
$role = $this->_auth->getIdentity()->role;
} else {
$role = 'guest';
}
$resource = $request->controller;
if (!$this->_acl->has($resource)) {
$resource = null;
}
On Mon, Sep 29, 2008 at 2:00 PM, Bradley Holt <bradley.holt@foundline.com> wrote:
You would have to implement this in your application's logic - I don't know of anything in Zend Framework that does this specifically. When you forward to the login page, include parameters indicating the page from which you forwarded. When the login is complete, use those parameters to forward back to that original page (you may have to save those parameters to a session variable so they persist across multiple login attempts).--
On Mon, Sep 29, 2008 at 6:52 AM, Jigal sanders <jigalroecha@gmail.com> wrote:Hello everyone,I am using Zend_Acl in combination with login.Every time when I try to go to a page, the system checks if I am logged in. In case I'm not, it redirects me to a login page. Here I can enter my credentials and log in again.But when I am logged in it doesn't redirect me to the page I wanted to get originally. How can I make sure it redirects me to the page i wanted originally?Thanks,J. Sanders
Bradley Holt
bradley.holt@foundline.com
--
Met vriendelijke groet,
Jigal Sanders
A.J. Ernststraat 739
1082 LK Amsterdam
Mobiel: 06-42111489
没有评论:
发表评论