Hi stephen,
-- I want add class to only when URl is active. If we add class in options array it will be for every time. I want it for only atcive pages
Thanks,
kiran
--
Thank you,
On Wed, Feb 29, 2012 at 1:35 PM, Stephen Speakman <stephen@ninjacodermonkey.co.uk> wrote:
--In the options array add 'class' => 'myclass'Echo $this->Html->link('my link', array('controller' => 'users', 'action' => 'index'), array('class' => 'mylink'));If my memory serves me correctly that is
Sent from my iPhone--HiI am using cakphp 'link' to generate anchor tags. Now i awnt to add a class to active links to apply some styling to those links. Is there a way to that.
--
Thank you,Kiran.
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
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
Thank you,
Kiran.
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:
Post a Comment