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
Mike Karthäuser
Managing Director - Brightstorm Ltd
Email: mikek@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel: 07939 252144
Email: mikek@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel: 07939 252144
Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
No comments:
Post a Comment