You can use this code for image tag for alt text in cakephp view . <?php
echo $html->image($imagepath."blankimage.jpg", array('alt' => 'No Image', 'width'=> 130,'height' => 110)); ?> On Thu, May 7, 2009 at 8:35 AM, Turgs <timb....@gmail.com> wrote: > > Hello > > I'm using the TextImage helper. > > When setting the ALT text for the image tag, the helper replaces my > text content with the alt text.. So the alt text shows instead. > > I've tried looking at why without any success. > > To use the helper, I'm doing this: > > <?php > /* this generates an image using GD and returns the > * image HTML produced by HtmlHelper's > * image function. > * > * @param $text > * @param $padding_around_text > * @param $filename > * @param $html_attributes > */ > $this->TextImage->image('content', 0, 'image1', array('alt' => 'alt- > text')); > ?> > > Any help would be excellent. > > The helper code is available at: > http://bakery.cakephp.org/articles/view/textimage-helper > > Cheers > Turgs > > > -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---