php - Customize $this->Html->link() As per HTML -
i have html code, , having problem create link on cakephp !
this html code!
<li> <a href="#"> <i class="fa fa-angle-double-right"></i> morris </a> </li>
and want create this, cakephp way!
<li> <?php echo $this->html->link(__('list'), array( 'controller'=>'transactions', 'action'=>'index' ) ); ?> </li>
but having problem this, , how set this:
i want this
https://drive.google.com/file/d/0bw9k-whe0suvqkhuqy14t2lacjq/view?usp=sharing
use
echo $this->html->link( '<i class="fa fa-angle-double-right"></i>', array( 'controller'=>'transactions', 'action'=>'index' ), array( 'escape'=>false //notice line *************** ) );
php cakephp cakephp-2.0 cakephp-2.3 helpers
No comments:
Post a Comment