> <?php if ( $this->controller->Session->check('AuthenticatedProfile') )
> $this->renderElement('admin_menu'); ?>
There is automatically loaded helper 'session', so You can
<?php if ( $session->check('AuthenticatedProfile') )
$this->renderElement('admin_menu'); ?>
Besides, it is definitely not a recommended way use controller directly
in Your views/layouts/elements (thtml files). MVC, You know.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---