top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How an image can be created as a link in CakePHP?

0 votes
85 views
How an image can be created as a link in CakePHP?
posted Jul 18, 2014 by Karamjeet Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

You need to give path of link as url in array of Html Attributes of image function for this.
e.g.
<?php echo $this->Html->image("users/6.jpg", array( "alt" => "hello", 'url' => array('controller' => 'users', 'action' => 'view', 6) )); ?>

answer Jul 22, 2014 by Rahul Mahajan
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...