I have a problem adding CSS classes to my HTML links in CakePHP: I tried the solution as posted in: How to call CSS class on a CakePHP Html->link?
If I put the links within the oldschool HTML div class 'my-class' it works.
If I use the code from the example it does not work:
echo $this->Html->link(__('Blogs', true), array('controller' => 'posts', 'action' => 'index'), array('class' => 'my-class'));
What can be the reason for this?
<a class="my-class" href="/posts">Blogs</a>you're gonna have to give us more info about your problem