Hello all,

i finally got it working!!! :-)

i merged some ideas i found in the google-group, so the following code
works for me. It is an image, which links to a delete-view and it
outputs a confirm message with the current row number (id).

[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", you can show something 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 [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