How to call CSS class on a CakePHP Html->link?

后端 未结 4 611
囚心锁ツ
囚心锁ツ 2020-12-16 20:47

I am a complete noob to programming and CakePHP all together, so please be patient. How am I supposed to call the CSS on this Html->link:



        
4条回答
  •  自闭症患者
    2020-12-16 20:55

    Please try this CakePHP 3 in

    Html->link(__('Blogs'), ['controller' => 'posts', 'action' => 'index'], ['class' => 'mb-xs mt-xs mr-xs btn btn-warning']);
    ?> 
    

提交回复
热议问题