John is correct, I've used it both ways .... I'm just a bit partial to divs.
I've also defined css rules inline using 'style' => but I rarely use that method. - Ed On Wed, May 26, 2010 at 5:12 AM, John Andersen <[email protected]>wrote: > As written in the CakePHP book at: > > http://book.cakephp.org/view/1435/Inserting-Well-Formatted-elements#link-1442 > > then what you have shown in your post is correct! > Now you just need to define your "current" style in your CSS file and > you are good to go! > Enjoy, > John > > On May 26, 9:41 am, Dilip Godhani <[email protected]> wrote: > > Can any One hellp > > > > How i Apply css in $html->link > > i give css following > > <?php echo > > > $html->link('Add',array('controller'=>$this->params['controller'],'action'=>'view'),array('class'=>'current')); > > ?> > > > > -- > > 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
