When having fairly simple problems like this it is very rewarding, and quicker, to solve them yourself.
Break the process down into steps and then piece it back together. For example you could: 1. Read about Html::image() and ensure you can get your image displaying http://book.cakephp.org/view/1441/image 2. Read about Ajax::link() and get an ajax link working as a text link http://book.cakephp.org/view/1363/link 3. Take the working HTML::image() code and use it to replace the text in the link you created in step 2 Tip: the bit you're probably struggling with is the boolean $escapeTitle in Ajax::link(); and always look at the code outputted when something is not working, manually create the code yourself and try and figure out what part of your CakePHP code is not working as expected. HTH, Paul @phpMagpie On Sep 1, 11:59 am, taqman filler <[email protected]> wrote: > <?=$ajax->link(($html->image("like",array('escape'=>false))),'/user_articles/vote/up/'.$article['Article']['id'],array('update'=>'vote_'.$article['Article']['id']),null,false);?> > out put > <img src="/cakeplate/img/like" alt="" /> > before ask > I try to find answer in group and follow it but doesn't work > how to fix it -- 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
