arif, paulos

Hello,

i merged your ideas, this code works for me. It is a image, which
links to a view and it outputs a confirm message with the current row
number (id).
I used this for a delete option.

[code]
<?php echo $html->link($html->image("delete.png", array("alt" =>
"delete", "title" => "delete")), $html -> url(array("controller" =>
"sample_controllers", "action" => "delete", $row['SampleController']
['id'])), array(), sprintf(__('Are you sure you want to delete # %s?',
true), $row['SampleController']['id']), false); ?>
[/code]

With "title", it appears "title" => "value" when you move the mouse
over the image.

Hope this helps!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to