yes, if you are in admin routing, html helper will default to admin routing

one recommondation, instead of using 'admin' => 'false' (or true), It is
safer to use Configure::read("Routing.admin") => 'false'

but you do need to manually state if you want to break out or into admin
routing.

On Thu, Nov 12, 2009 at 11:47 PM, Amit <[email protected]> wrote:

> I just want to make sure I'm not missing something here. If you're on
> an admin page and have admin routing enabled, does the HtmlHelper
> default the 'admin' option to true?
>
> For example, I'm using the HtmlHelper to create links in my default
> layout. These links include:
>
> $html->link('about', array('controllers'=>'pages',
> 'action'=>'display', 'about'))
>
> $html->link('admin', array('controllers'=>'users', 'action'=>'index',
> 'admin'=>true))
>
> $html->link('contact', array('controllers'=>'contacts',
> 'action'=>'index', 'plugin'=>'contact))
>
> Do I need to manually set the 'admin' option to false for the 'about'
> and 'contact' link? Consequently, should I also set the 'plugin'
> option to null for the 'about' and 'admin' link?
>
> --
>
> 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]<cake-php%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=.
>
>
>

--

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=.


Reply via email to