in link array add "admin" => false so like this:

{{{

echo $this->Html->link(__('ORDER - New', true), array('controller' =>
'events', 'action' => 'index', 'admin' => false));

}}}

--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/2/21 lirc201 <[email protected]>

> Hello All,
>
> I've been struggling with links in my admin area to allow for
> redirecting to my front page.  I have some admin functions that I do
> not want to have in the admin section.  Mainly I want admins to be
> able to enter orders for customers using the same screens as a regular
> web user would (with more options).  Anyways I post a link like
>
> echo $this->Html->link(__('ORDER - New', true), array('controller' =>
> 'events', 'action' => 'index'));
>
> Where I have a /events/index, and a /admin/events/index.  With this
> code in the admin area, I want to redirect to /events/index.  However
> it is assuming that I meant to say /admin/events/index.  How can I get
> around this?
>
> Thanks,
> Brian
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to