According to the docs 
http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html

To create an image link specify the link destination using the url option in 
$htmlAttributes.:

echo $this->Html->image("recipes/6.jpg", array(
        "alt" => "Brownies",
        'url' => array('controller' => 'recipes', 'action' => 'view', 6)
));



On 2 Jun 2014, at 14:37, jagguy <and...@itfutures.edu.au> wrote:

> Hi,
> 
> I simply want to display a button instead of a link but the button doesnt 
> appear as I cant override the link display with htmlHelper    
> In older versions of cake 2.x this does work.
> 
> echo "<td>" .$this->Html->link('Edit', array('controller' => 'users',
>             'action' => 'editteacher/'.$item['User']['id']), array('class' => 
> 'button')) ."<td>";
> http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html
> 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to