Re: Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-18 Thread Daniel
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

Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-17 Thread Daniel
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;?

Re: Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-17 Thread euromark
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';?