Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 9th, 2013  |  syntax: None  |  size: 0.75 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. echo $this->Html->image("recipes/6.jpg", array(
  2.     "alt" => "Brownies",
  3.     'url' => array('controller' => 'recipes', 'action' => 'view', 6)
  4. ));
  5.        
  6. <a href="/recipes/view/6">
  7.     <img src="/img/recipes/6.jpg" alt="Brownies" />
  8. </a>
  9.        
  10. <a href="/recipes/view/6" class='picture'>
  11.     <img src="/img/recipes/6.jpg" alt="Brownies" />
  12. </a>
  13.        
  14. <?php echo $this->Html->link(
  15. $this->Html->image("loading.gif", array('alt' => 'Brownies', 'border' => '0')),
  16. array('controller' => 'recipes', 'action' => 'view', 6),  array('class' => 'picture', 'escape' => false));
  17.        
  18. echo $this->Html->link(
  19.     $this->Html->image("recipes/6.jpg", array('alt' => 'Brownies')),
  20.     array('controller' => 'recipes', 'action' => 'view', 6, array('escape'=>false', 'class'=>'picture')
  21. );