On 3 Jan 2010, at 10:40, Lorenzo Bettini wrote:

> well that was a view linked directly by the router, e.g.,
> 
> /admin
> 
> thus there's no controller action associated to that...

if you add 

                if(isset($this->params['admin'])){
                        // do something         
                        }

to beforeFilter in app_controller you can detect whether admin is set and 
redirect accordingly



-- 
Mike Karthäuser
Managing Director - Brightstorm Ltd 
Email: [email protected] 
Web: http://www.brightstorm.co.uk 
Tel: 07939 252144
Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to