cakephp - Class in menu link -


i have code menu in app, , need add class type one.

<?php                                 echo $this->html->link('home page',                                     array('controller'=>'pages','action'=>'home_page'),                                     array('escape'=> false)).' | ';                             ?> 

can me please? how can add it?

try this

$this->html->link('home page', array('controller'=>'pages','action'=>'home_page'),array('escape'=>false ,'class'=>'yourclass')); 

Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -