Thursday, April 28, 2011

Html Link in the elements

Hello,
I have this problem.
I want create a menu for my website, so I use an element that I set in
my layout.ctp so:

<div class="menu"><?php echo $this->element('menu',array(),true);?></
div>

I need use link for my menu but the helper doesn't work!
I try with :
$this->html->link(..) //but doesn't reconize $this because there
isn't an object
$html->link(..) // but is not set..

How can I use Html Helper?

Thank you
Bye

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: