That's the correct way. If you want it shorter, you could write your
own helper. Something like
class ImageHelper extends AppHelper {
var $helpers = array('Html');
function link($file) {
return $this->Html->link($this->Html->image($file, array('border'
=> '0')), '/',
null, null, false);
}
}
should do the trick (not tested).
HTH
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---