do you mean give a link a class or id attribute?
pass your attribs to the options param of HtmlHelper link
echo $html->link('Search',array('action'=>'search'), array('class' =>
'supaSearch', 'id' => 'supaSearch'));
also if your accessing an action of the current controller you dont need to
pass $this->params['controller']
- S
On 12 May 2010 12:11, Dilip Godhani <[email protected]> wrote:
> how i appply css on link tag
> in cakephp
>
> <?php echo
> $html->link('Search',array('controller'=>$this->params['controller'],'action'=>'search'));
> ?>
> Help me
>
> Thanks
>
> --
> Dilip Godhani
> Jr Software Developer, Entourage Solutions
> e-mail: [email protected]
> [email protected]
> Web.: www.entouragesolutions.com
> m. 9913822582
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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=en
>
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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=en