Or adapt this from the cookbook:
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
Jeremy Burns
Class Outfit
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 <[email protected]> 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*
>> Desenvolvedor
>> Rio de Janeiro - RJ - Brasil
>>
>> +55 (21) 8865.9250
>> thiagobelem.net
>> [email protected]
>>
>> *Skype / gTalk **»* thiago.belem.web
>> *LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
>> Assando Sites*, curso de CakePHP *»* assando-sites.com.br
>>
>>
>>
>> On Wed, Oct 26, 2011 at 18:29, Blues Clues <[email protected]> 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 "Forgot
>>> Password" as shown above. Can you help me with this? I am really
>>> lost...
>>
>>> Blues Clues
>>
>>> --
>>> Our newest site for the community: CakePHP Video Tutorials
>>> http://tv.cakephp.org
>>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
>>> others with their CakePHP related questions.
>>
>>> To unsubscribe from this group, send email to
>>> [email protected] For more options, visit this group
>>> athttp://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
> [email protected] For more options, visit this group at
> http://groups.google.com/group/cake-php
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php