View Single Post
  #3 (permalink)  
Old 04-15-2008, 01:45 AM
sunspark sunspark is offline
Junior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 8
Default

That's almost all that I need myself, I think.

I want to put my Auth & ACL within a single preDispatch, so I don't have to repeat it for all my controllers.

The problem I ran into was how to redirect to the login form when either fails (user isn't logged in or user does not have permission).

Using
Code:
$request->setControllerName('controllername')
appears to mostly work, but...

1. How can I pass a $_GET variable as well (/controller/action?var=something)?

2. How can I have the rest of my preDispatch skipped? Just use
Code:
return;
?
Reply With Quote