I wonder what is the most cakey way to do this. When I do:
echo $this->Html->image('uploadimage.gif', array('alt'=>'Upload Image', 'class'=>'nyroModal', 'url'=>'#test'));
It outputs:
<a href="#test"><img src="/img/uploadimage.gif" alt="Upload Image" class="nyroModal" /></a>
I need it to be:
<a href="#test" class="nyroModal"><img src="/img/uploadimage.gif" alt="Upload Image"/></a>
IE the class is applied to the link rather than the image. How can I do that?
thanks 🙂
I have never used cakePHP but for what I read online instead of giving a url to the image you can do it the other way around, create a link and pass an image, the result should be something like this:
For more info on
linkyou can go here: http://book.cakephp.org/view/1442/link