Got it thanks. The amended code is:
li?php echo $this-Html-link(__('New Image', true), array('action'
= 'add', $gallery_id)); ? /li
--
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
I am displaying an image in a view.ctp file:
div class=images view
h2?php __('Image');?/h2
dl?php $i = 0; $class = ' class=altrow';?
dt?php if ($i % 2 == 0) echo $class;??php __('Id'); ?/dt
dd?php if ($i++ % 2 == 0) echo $class;?
Why is $gallery_id your third param of link()?
I find the error pretty self-explanatory...
On 18 Dez., 01:06, Daniel danwgr...@gmail.com wrote:
I am displaying an image in a view.ctp file:
div class=images view
h2?php __('Image');?/h2
dl?php $i = 0; $class = ' class=altrow';?