Re: Admin routing in combination with OthAuth

2007-06-26 Thread [EMAIL PROTECTED]
Totally clear to me. Thenx, Jos On 26 jun, 14:23, Nasko <[EMAIL PROTECTED]> wrote: > To be precise: > > > If you set the othAuth settings properly you'd get redirected to / > > admin/users/login if you try to access a page that needs specific > > permissions. > > You'd be redirected to admin/use

Re: Admin routing in combination with OthAuth

2007-06-26 Thread Nasko
To be precise: > If you set the othAuth settings properly you'd get redirected to / > admin/users/login if you try to access a page that needs specific > permissions. You'd be redirected to admin/users/login if you haven't been logged-in and the action requires specific permissions > This way,

Re: Admin routing in combination with OthAuth

2007-06-26 Thread Jonathan Langevin
Nasko, thanks very much for that detailed example ;-) On 6/26/07, Nasko <[EMAIL PROTECTED]> wrote: > > > I'm using othAuth in my current project. The way it worked for me - I > don't have this special route specified: > $Route->connect('/admin', array('controller' => 'users', 'action' > =>'login')

Re: Admin routing in combination with OthAuth

2007-06-26 Thread Nasko
I'm using othAuth in my current project. The way it worked for me - I don't have this special route specified: $Route->connect('/admin', array('controller' => 'users', 'action' =>'login')); Instead, I have my '/admin' url pointing to one of my CMS sections: ### routes.php $Route->connect('/ad

Admin routing in combination with OthAuth

2007-06-26 Thread [EMAIL PROTECTED]
I've got the following code in routes.php: $Route->connect('/admin', array('controller' => 'users', 'action' => 'login')); $Route->connect('/', array('controller' => 'pages', 'action' => 'display', 'home')); $Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); $Rout