Sunday, March 27, 2011

Nak Paparkan Gambar beserta link di dalam CakePHP 1.3

Nak Paparkan Gambar beserta link di dalam CakePHP 1.3


HTML special characters in $title will be converted to HTML entities. To disable this conversion, set the escape option to false in the $options array.


  1. echo $this->Html->link(
  2. $this->Html->image("recipes/6.jpg", array("alt" => "Brownies")),
  3. "recipes/view/6",
  4. array('escape' => false)
  5. );
  6. ?>


No comments: