Re: Undefined index error in controller

2012-04-12 Thread Daniel
I found the problem, stupidly I had two copies of the ctp file in my project, in different directories, and I was editing the wrong one. After I deleted the extra file and edited the "right" file, no suprise the problem went away. -- Our newest site for the community: CakePHP Video Tutorials htt

Re: Undefined index error in controller

2012-04-05 Thread Tilen Majerle
ur cake version is ? and instead of this Form->create('Image', array('enctype' => 'multipart/ form-data')); ?> use Form->create('Image', array('type' => 'file')); ?> and in your controller simply debug $this->request->data to see what data you have posted -- Lep pozdrav, Tilen Majerle http://m

Re: Undefined index error in controller

2012-04-05 Thread Jeremy Burns | Class Outfit
You are trying to access the 'Image' key of an array in line 31 of your images_controller, but the array key does not exist. How do I know this? Because I read the error message. Jeremy Burns Class Outfit http://www.classoutfit.com On 5 Apr 2012, at 16:48:15, Daniel wrote: > I get the followi

Undefined index error in controller

2012-04-05 Thread Daniel
I get the following error in my ImagesController: Notice (8): Undefined index: Image [APP\Controller \ImagesController.php, line 31] The controller code is as follows (ending on line 31) : public function img_upload($person_id = null) { if ($this->request->is('post')) { $f