On Apr 16, 7:20 am, sebb86 <[email protected]> wrote: > cricket > > Also thanks to you. It dont works in both browsers. Dont know why. > Anyway... i decided that i dont use CSS for this. I got it working so > far but i still have one problem. > > [this code works (without the CSS class, but its okay] > <?php echo $html->image("edit.png", array("alt" => "Editieren", 'url' > => array('controller' => 'dns_names', 'action' => 'edit', > $dns_name['DnsName']['id']))); ?> > [/code] > > The last problem: I want to use the same source code for me delete > button. But how can i include my confirm message in the following > code: > [delete code] > <?php echo $html->image("delete.png", array("alt" => "Delete", 'url' > => array('controller' => 'dns_names', 'action' => 'delete', > $dns_name['DnsName']['id']))); ?> > [/code] > > [code confirm message] > sprintf(__($deleteQuestion, true), $dns_name['DnsName']['id'] > [/code] >
But now you don't have a link. Go back to what you had before, ie. $html->link($html->image(...), ...) And remove the CSS rules. I never use Cake's $confirmMessage myself but look here: http://api.cakephp.org/class/html-helper#method-HtmlHelperlink 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
