$this->redirect(array('action'=>'index', 'admin'=>0));
On Sat, Jun 12, 2010 at 2:44 PM, saidbakr <[email protected]> wrote:
> The situation is different. Indeed there is no really mysite/admin/
> the admin here is an action from pages controller. But there is admin
> routs such as mysite/admin/users/add. What I need to achieve is to set
> or make an index page for admin and when the user is being on mysite/
> admin/users/add and has a redirect to be directed to a controller
> without admin prefix as regarded before.
>
> In more clearance, the problem is:
> When the user becomes on some place like mysite/admin/posts and got a
> redirect code, the action portion auto prefixed with admin.
>
> The redirect code logic I uses is a method of AppController and it
> called from beforeFilter function in AppController too.
>
>
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