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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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