top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

0 votes
344 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
...