echo $this->Html->image("recipes/6.jpg", array( "alt" => "Brownies", 'url' => array('controller' => 'recipes', 'action' => 'view', 6) ));
Jeremy Burns
Class Outfit
Tel: +44 (0) 208 123 3822
Mob: +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com
Tel: +44 (0) 208 123 3822
Mob: +44 (0) 7973 481949
Skype: jeremy_burns
http://www.classoutfit.com
Jeremy Burns
http://www.classoutfit.com
On 26 Oct 2011, at 23:44, Blues Clues wrote:
Hi,
Awesome. That did the magic. Thank you very much.
-BC
On Oct 26, 5:43 pm, Thiago Belem <cont...@thiagobelem.net> wrote:You can do this:<?php echo $this->Html->link($this->Html->image("resetpasswd.png",array("alt" => "ResetPassword")) . ' YOUR TEXT HERE', "users/reset",array('class'=>'regular', 'escape' => false)); ?>Regards,--***Thiago Belem*DesenvolvedorRio de Janeiro - RJ - Brasil+55 (21) 8865.9250thiagobelem.netcont...@thiagobelem.net*Skype / gTalk **»* thiago.belem.web*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*Assando Sites*, curso de CakePHP *»* assando-sites.com.brOn Wed, Oct 26, 2011 at 18:29, Blues Clues <bluesclu...@gmail.com> wrote:Hi:I am stuck. Can you help with this?I would like to generate a <a> link that should like this...<a href="/users/reset" class="regular"> <img src="/img/resetpasswd.png" alt="ResetPassword" />Forgot Password</a>My $html->link looks like this...<?php echo $this->Html->link($this->Html->image("resetpasswd.png",array("alt" => "ResetPassword")), "users/reset", array('class'=>'regular', 'escape' => false));?>The result looks like this...<a href="/users/reset" class="regular"> <img src="/img/resetpasswd.png" alt="ResetPassword" /></a>When I use Image, I can't seem to add body for <a> tag "ForgotPassword" as shown above. Can you help me with this? I am reallylost...Blues Clues--Our newest site for the community: CakePHP Video Tutorialshttp://tv.cakephp.orgCheck out the new CakePHP Questions sitehttp://ask.cakephp.organd helpothers with their CakePHP related questions.To unsubscribe from this group, send email tocake-php+unsubscribe@googlegroups.com For more options, visit this groupathttp://groups.google.com/group/cake-php- Hide quoted text -- Show quoted text -
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment