<?php
        $text = 'HELLO THERE! ';
        echo($html->image('icon.gif', array('alt' => $text . $phone['Phone'] 
['phonenumber'], 'title'=> $text . $phone['Phone']['phonenumber'])));
?>

Does that help?

On 10 Nov 2008, at 10:21, thankyou wrote:

>
> Any help on this is greatly appreciated :)
>
> I want to add additional text to the alt and title code for the icon,
> how can I hard code this in. For example, how do I add the text "HELLO
> THERE" to the alt tag so it says both "Hello There" and what it pulls
> up from the $phone?
>
> <?php echo($html->image('icon.gif', array('alt'=>$phone['Phone']
> ['phonenumber'], 'title'=>$phone['Phone']['phonenumber'])));?>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to