Re: about "Notice (8): Undefined index:"

2013-06-23 Thread wen ger0606
3.1 cakephp. >> When you run the following simple code, "Notice (8): Undefined index: >> User [APP / View / Users / index.ctp, line 6]" occurs. >> If you run in cakephp 2.3.1 on another server the same code, the error >> does not occur. >> >> -

Re: about "Notice (8): Undefined index:"

2013-04-28 Thread Khánh Vương
Hi, I have same error. Please let me know way to solve this problem. Thanks! On Tuesday, April 2, 2013 11:26:14 PM UTC+7, wen ger0606 wrote: > > I'm using 2.3.1 cakephp. > When you run the following simple code, "Notice (8): Undefined index: > User [APP / View / Use

Re: about "Notice (8): Undefined index:"

2013-04-03 Thread wen ger0606
> > > please write and not > > try this one > > > > > > > > > > i hope it helps you > > > Am Dienstag, 2. April 2013 18:26:14 UTC+2 schrieb wen ger0606: >> >> I'm using 2.3.1 cakephp. >> When you run the following simple

Re: about "Notice (8): Undefined index:"

2013-04-03 Thread Jerome Walitzek
simple code, "Notice (8): Undefined index: > User [APP / View / Users / index.ctp, line 6]" occurs. > If you run in cakephp 2.3.1 on another server the same code, the error > does not occur. > > - UsersController.php --- > class UsersController extend

about "Notice (8): Undefined index:"

2013-04-02 Thread wen ger0606
I'm using 2.3.1 cakephp. When you run the following simple code, "Notice (8): Undefined index: User [APP / View / Users / index.ctp, line 6]" occurs. If you run in cakephp 2.3.1 on another server the same code, the error does not occur. - UsersController.php --

Re: undefined index error

2012-08-20 Thread mohit kumar
$id))); >>> foreach ($current_roster as $current_rosters) { >>> $vid=$current_rosters['**Weeklyroster']['id']; >>> >>> $current_shifts = >>> $this->Weeklyroster->Shift->**find('all',ar

Re: undefined index error

2012-08-19 Thread Bharat Maheshwari
x27;id']; >> >> $current_shifts = >> $this->Weeklyroster->Shift->find('all',array('conditions' => >> array('Shift.id' => $vid))); >> >> >> } >&g

Re: undefined index error

2012-08-16 Thread ivnrmc
I suppose you tried debugging your variable, but if you get undefined index, you should check if this array actually contains some data. Debugging inside controller, and debugging $this->data is a good way to find out what is going on... If you still have problems, please provide more info

Re: undefined index error

2012-08-14 Thread mohit kumar
s->Weeklyroster->Shift->**find('all',array('conditions' >>> => array('Shift.id' => $vid))); >>> >>> >>> } >>> >>> >>> $this->set('weeklyroster', $current_roster); >>&

Re: undefined index error

2012-08-14 Thread Dave M.
'all',array('conditions' => >> array('Shift.id' => $vid))); >> >> >> } >> >> >> $this->set('weeklyroster', $current_roster); >> $

undefined index error

2012-08-13 Thread mohit kumar
rrent_rosters['Weeklyroster']['id']; > > $current_shifts = > $this->Weeklyroster->Shift->find('all',array('conditions' => > array('Shift.id' => $vid))); > > > } > > > $this->s

Re: Undefined index after web host install.

2012-06-30 Thread Guti Grewal
ed my website on a free hosting site called 000webhost, it > works fine on localhost but however when I try to upload a file to the > server using a form I get thrown this error. > > *Notice* (8): Undefined index: Upload > [*APP/Controller/UploadsController.php*, line *32*] &g

Re: Undefined index after web host install.

2012-06-29 Thread lowpass
On Fri, Jun 29, 2012 at 3:01 PM, Guti Grewal wrote: > Notice (8): Undefined index: Upload [APP/Controller/UploadsController.php, > line 32] > > /app/Controller/UploadsController.php (line 32) > > null > > > This is what I get, when I do the debug, so Im guessing

Re: Undefined index after web host install.

2012-06-29 Thread Guti Grewal
*Notice* (8): Undefined index: Upload [*APP/Controller/UploadsController.php*, line *32*] */app/Controller/UploadsController.php* (line *32*) null This is what I get, when I do the debug, so Im guessing theres no errors with the coding. Where else could the error be. It works fine in

Re: Undefined index after web host install.

2012-06-29 Thread lowpass
t, it > works fine on localhost but however when I try to upload a file to the > server using a form I get thrown this error. > > Notice (8): Undefined index: Upload [APP/Controller/UploadsController.php, > line 32] > Code > > UploadsController::add() - APP/Controller/Uplo

Undefined index after web host install.

2012-06-28 Thread Guti Grewal
Hi I've uploaded my website on a free hosting site called 000webhost, it works fine on localhost but however when I try to upload a file to the server using a form I get thrown this error. *Notice* (8): Undefined index: Upload [*APP/Controller/UploadsController.php*, line *32*]

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
gt; 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) { >

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

Re: Undefined index with associated afterFind()

2012-02-21 Thread jeremyharris
Well for one you're calling a find twice, once in $this->Quote->find('all') and again in $this->paginate(). You only should be calling $this->paginate() which will perform the find for you, and limit the results to the pagination settings. -- Our newest site for the community: CakePHP Video Tu

Re: Undefined index with associated afterFind()

2012-02-21 Thread Ralph stokes
Well my associations are: Rate - hasManyProducts Product - belongsTo Material, belongsTo Rate, hasAndBelongsToMany Quote Quote - belongsTo Product Material - hasManyProducts In QuotesController index function I have: $quotes = $this->Quote->recursive = 2; if ($this->Sessi

Re: Undefined index with associated afterFind()

2012-02-16 Thread jeremyharris
Let's see your model associations set up, where the afterFind is, and what find call you are using. That will probably give me a better understanding of what's going on. Also have you looked at virtual fields? They might be an answer to your problem. -- Our newest site for the community: Ca

Re: Undefined index with associated afterFind()

2012-02-16 Thread Ralph stokes
Rodrigo: Pre-calculation is not an option as all products in the system would have to be recalculated when core values are changed. I tried doing that originally and it was very,, very messy. Jeremy: Thanks, i've tried the recursion and contain properties with no luck. Whatever I try the Produ

Re: Undefined index with associated afterFind()

2012-02-16 Thread Rodrigo Rodrigues Moyle
A better way is pre-calculate the values and save on database. -- 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 others with their CakePHP related questions. To unsubscribe from this gr

Re: Undefined index with associated afterFind()

2012-02-15 Thread jeremyharris
Maybe your original find didn't include that association. Check recursive or contain to make sure it should be included in the first place. Then debug the results in afterFind and the results where you originally called the find. -- Our newest site for the community: CakePHP Video Tutorials

Undefined index with associated afterFind()

2012-02-15 Thread Ralph stokes
ct model afterfind results in the Quote model afterFind just fine like: $val['Product']['number_tools'] However, now the Product model cannot find the associated material and I get the error: Undefined index: Material [APP/Model/Product.php, line 126]. on line 126 of Product.php is $val[

Re: Undefined index Error

2011-09-25 Thread WebbedIT
As the error clearly states, on line 43 of your view code you are trying to access an undefined index (variable or array). Find line 43 (we're not going to do that for you as the block of code is now poorly formatted due to Google Groups width restrictions) and make sure you're s

Undefined index Error

2011-09-24 Thread Adwait Karmarkar
I am are building a Hotel application When I try to list all hotels using Pages controller, and result.ctp (Viewing page) I am getting an error as: Undefined index: id [APP/views/pages/result.ctp, line 43] I am using the same code that works in the baked hotels controller. Please check the

Re: Notice (8): Undefined index: id?

2011-07-26 Thread ianemv
Resolved mine by renaming the table. Instead of just detail, I named my child table details :) my mistake - The best thing we can share in this world is knowledge Shared Corner -- View this message in context: http://cakephp.1045679.n5.nabble.com/Notice-8-Undefined-index-id

Re: Override primarikey Undefined index: id Error

2011-06-09 Thread Jeremy Burns | Class Outfit
ame = 'Amg_Predios'; > var $primaryKey = 'gid'; > } > ?> > > but when in my controller I use the: > > > $this->AmgPredio->save( $this->data ); > > I get this error: > Notice (8): Undefined index: id [C

Override primarikey Undefined index: id Error

2011-06-09 Thread MrMariscal
I have a model definition where I override the primaryKey as follows: but when in my controller I use the: $this->AmgPredio->save( $this->data ); I get this error: Notice (8): Undefined index: id [CORE/cake/libs/model/ model.php, line 1329] And after it, a message

Override primarikey Undefined index: id Error

2011-06-09 Thread MrMariscal
I have a model definition where I override the primaryKey as follows: but when in my controller I use the: $this->AmgPredio->save( $this->data ); I get this error: Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line 1329] And after it, a message

Re: Strange issue in Single View : Undefined index

2011-04-13 Thread Mr.Jayesh
here > > > } > > > The problem arises here. I am able to land up in correct page.but the > > view is unable to show me join data. where ever the datas are from > > other tables like manufacturers and origin and others, it shows a > > Undefined index like this: > &

Re: Strange issue in Single View : Undefined index

2011-04-12 Thread euromark
here > > } > > The problem arises here. I am able to land up in correct page.but the > view is unable to show me join data. where ever the datas are from > other tables like manufacturers and origin and others, it shows a > Undefined index like this: > > Notice (8): Unde

Strange issue in Single View : Undefined index

2011-04-12 Thread Mr.Jayesh
view like this: function details($id = null) { //all logic here } The problem arises here. I am able to land up in correct page.but the view is unable to show me join data. where ever the datas are from other tables like manufacturers and origin and others, it shows a Undefined index like this

Re: problem with saving models..undefined index...

2010-09-15 Thread Andrei Mita
. > > > > > > > > I have two Models LinkTmp and LinkAttachment, hence two tables. > these > > > > > > two models have no relation at all, since the LinkTmp is just for > > > > > > temporary storing, till the User finally saves his produ

Re: problem with saving models..undefined index...

2010-09-15 Thread j.blotus
mporary storing, till the User finally saves his product. > > > > > > I want to save data from LinkTmp in LinkAttachment. Its nothing else > > > > > than copying the data from the temp table to the real target. So first > > > > > i get all the data from LinkTmp

Re: problem with saving models..undefined index...

2010-09-15 Thread j.blotus
s nothing else > > > > than copying the data from the temp table to the real target. So first > > > > i get all the data from LinkTmp I need: > > > > > $tmp_attachment = $this->LinkTmp->find('all', array('LinkTmp.abc =' => > > > &g

Re: problem with saving models..undefined index...

2010-09-15 Thread Tomfox Wiranata
target. So first > > > i get all the data from LinkTmp I need: > > > > $tmp_attachment = $this->LinkTmp->find('all', array('LinkTmp.abc =' => > > > $this -> Session -> read('Link.abc'), 'LinkTmp.attachment' => '1

Re: problem with saving models..undefined index...

2010-09-15 Thread Tomfox Wiranata
; => '1')); > > > > the result is multiple results. I checked. now i need to save these > > > results in LinkAttachment: > > > >  $this->data['LinkAttachment']['filesize'] = $tmp_attachment['LinkTmp'] > > >

Re: problem with saving models..undefined index...

2010-09-15 Thread j.blotus
multiple results. I checked. now i need to save these > > results in LinkAttachment: > > >  $this->data['LinkAttachment']['filesize'] = $tmp_attachment['LinkTmp'] > > ['size']; > >  $this->data['LinkAttachment']['filet

Re: problem with saving models..undefined index...

2010-09-15 Thread Tomfox Wiranata
is multiple results. I checked. now i need to save these > results in LinkAttachment: > >  $this->data['LinkAttachment']['filesize'] = $tmp_attachment['LinkTmp'] > ['size']; >  $this->data['LinkAttachment']['filetype'] = $tmp_a

problem with saving models..undefined index...

2010-09-15 Thread Tomfox Wiranata
the result is multiple results. I checked. now i need to save these results in LinkAttachment: $this->data['LinkAttachment']['filesize'] = $tmp_attachment['LinkTmp'] ['size']; $this->data['LinkAttachment']['filetype'] = $tmp_attachment[

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
thx. all good now thx a lot... On 25 Jul., 20:28, cricket wrote: > On Sun, Jul 25, 2010 at 2:17 PM, Tomfox Wiranata > > wrote: > > well. thats it. the field names were wrongwhen i changed it to > > firstname and lastname it workedi was close to jumoing out of the > > window...thx a

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread cricket
On Sun, Jul 25, 2010 at 2:17 PM, Tomfox Wiranata wrote: > well. thats it. the field names were wrongwhen i changed it to > firstname and lastname it workedi was close to jumoing out of the > window...thx a lot to all of you > > but last questionhow can i name the label i want? cause la

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
well. thats it. the field names were wrongwhen i changed it to firstname and lastname it workedi was close to jumoing out of the window...thx a lot to all of you but last questionhow can i name the label i want? cause lastname and firstname is not the label i wanna have :) On 25 Jul.,

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread AD7six
On Jul 25, 7:46 pm, Tomfox Wiranata wrote: > cake inserts a new row WITHOUT inserting the entered data $form->input('Vorname', <- your field names are wrong. try LOOKING at $this->data i.e. debug ($this->data); die; hth, AD Check out the new CakePHP Questions site http://cakeqs.org and

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread cricket
On Sun, Jul 25, 2010 at 1:44 PM, Tomfox Wiranata wrote: > hey cricket, thx. it makes sense. but if i code > >        if (!empty($this->data)) >        { > >                if ($this->User->save($this->data)) >                        { >                                $this->Session->setFlash('Prof

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
cake inserts a new row WITHOUT inserting the entered data On 25 Jul., 19:44, Tomfox Wiranata wrote: > hey cricket, thx. it makes sense. but if i code > >         if (!empty($this->data)) >         { > >                 if ($this->User->save($this->data)) >                         { >        

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
hey cricket, thx. it makes sense. but if i code if (!empty($this->data)) { if ($this->User->save($this->data)) { $this->Session->setFlash('Profil aktualisiert'); $this->redirect

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread cricket
On Sun, Jul 25, 2010 at 12:39 PM, Tomfox Wiranata wrote: > that is not correct? > > i try to access the information in the form with this->data and assign > these to my database field with $updates: > > if i code: >               $updates['User']['firstname']= "test"; >                $updates['Us

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
that is not correct? i try to access the information in the form with this->data and assign these to my database field with $updates: if i code: $updates['User']['firstname']= "test"; $updates['User']['lastname']= "test_lastname"; cake stores "test" in my database

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread cricket
On Sun, Jul 25, 2010 at 8:30 AM, Tomfox Wiranata wrote: > hi, > > this error occurs when i enter the firstname and lastname in a form > and try to update my profile. it is supposed to write this information > in the database. why does this error pops up, although i do have these > two attributes i

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
well i have a form with two fields. a field for users firstname and lastname. when the user hits the "ok" button these information should be saved into my databasebut instead, the error occurs On 25 Jul., 17:54, Norman Paniagua wrote: > The information is not printed in your view? If

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Norman Paniagua
The information is not printed in your view? If there is so, it was because you need to call so $this->data = $this->Yourtable->findByAField($field_value); And whe you want to update $this->YourTable->read('null', $tableId); $this->YourTable->set('field_1', $field_1); $this->YourTable->set('fiel

Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Tomfox Wiranata
hi, this error occurs when i enter the firstname and lastname in a form and try to update my profile. it is supposed to write this information in the database. why does this error pops up, although i do have these two attributes in my table?? my controller: function updateProfile() {

Re: Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line 1325]

2010-07-18 Thread Graham Weldon
Did you have a question? Cheers, Graham / Predominant On Mon, Jul 19, 2010 at 5:01 AM, دل wrote: > Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line > 1325] > Code | Context > >                $success = (bool)$db->update($this, $fields, $values); &

Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line 1325]

2010-07-18 Thread دل
Notice (8): Undefined index: id [CORE\cake\libs\model\model.php, line 1325] Code | Context $success = (bool)$db->update($this, $fields, $values); } else { $fInfo = $this->_schema[$this->primaryKey]; $data = array( &qu

Re: ERROR: Notice (8): Undefined index: User [APP\views\users\profile.ctp, line 25]- can't find the problem

2010-07-04 Thread Jeremy Burns | Class Outfit
My advice with all of these sort of issues is to debug out the results of the array you are parsing. It then becomes really easy to see what syntax you need to get to the right data: die(debug($your_variable)); Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com O

Re: ERROR: Notice (8): Undefined index: User [APP\views\users\profile.ctp, line 25]- can't find the problem

2010-07-04 Thread cricket
On Sun, Jul 4, 2010 at 1:27 PM, Tomfox Wiranata wrote: > oki...i just embarrassed myself... > > delete ['User'] and it works^^ Also, because you're fetching just one User, there shouldn't be any need to create a loop in the view. Or do you have Users that share usernames? Check out the new CakeP

Re: ERROR: Notice (8): Undefined index: User [APP\views\users\profile.ctp, line 25]- can't find the problem

2010-07-04 Thread Tomfox Wiranata
oki...i just embarrassed myself... delete ['User'] and it works^^ On 4 Jul., 18:58, Tomfox Wiranata wrote: > hi, > > i try to retrieve user data and echo it in a view. > > my view: > > >         name > > > > > > >         > <    line 25 > > > > > > controller: >    

ERROR: Notice (8): Undefined index: User [APP\views\users\profile.ctp, line 25]- can't find the problem

2010-07-04 Thread Tomfox Wiranata
hi, i try to retrieve user data and echo it in a view. my view: name set('users', $this->User->findByUsername($this->Session- >read('User.username'))); } its driv

Re: Notice (8): Undefined index: id?

2010-05-06 Thread tagnu
t; >> > On Mon, Mar 30, 2009 at 6:44 PM, Aurelius >> wrote: >> >> > > What does that mean, and where is the problem? >> > > Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line >> > > 1281...on line 77 >> >> > >

Re: Undefined index

2010-04-02 Thread newbie
right! when using findAllBy i had: [audits] => Array ( [0] => Array ( [Audit] => Array but with form and my owne query [audits] => Array ( [0] => Array

Re: Undefined index

2010-04-02 Thread WebbedIT
This is because you are using Model::query and not declaring your tables as cake would expect hence the arrays are returned with different keys that you are used to when returning data with Model::find (singular camelcased versions of your table names). Now I can see you are running subqueries so

Re: Undefined index

2010-04-01 Thread kani
// line 32 TO debuger result example: [viewVars] => Array ( [audits] => Array ( [0] => Array ( [audits] => Array // "S" Look this line !!! Check out the new CakePHP Questions sit

Re: Undefined index

2010-03-31 Thread John Andersen
John On Mar 31, 4:35 pm, newbie wrote: > Hi All, > > I'm getting error: > Notice (8): Undefined index: Audit [APP\views\audits\indexsln.ctp, > line 32] > Notice (8): Undefined index: Endpoint > > the codes are > > index.ctp: > >          $options = arra

Undefined index

2010-03-31 Thread newbie
Hi All, I'm getting error: Notice (8): Undefined index: Audit [APP\views\audits\indexsln.ctp, line 32] Notice (8): Undefined index: Endpoint the codes are index.ctp: create('audits' echo $form->create('Audit', array( 'controller' => 'au

Re: Undefined index

2010-03-30 Thread Ed Propsner
I appreciate you taking the time Paul but there won't be a need for a test case. The idea of the Cake developers putting together such an intricate framework and not allow you to perform the most basic functions with form components is just ridiculous and highly unlikely. I too agree with something

Re: Undefined index

2010-03-29 Thread WebbedIT
I will set up a test case for a user form and observe field when I get the chance as I'm sure it should work. Will get back to you with my findings. And to strongly second something Jeremy touched on, if using cake simply go with the conventions as much as possible, they make life so much easier.

Re: Undefined index

2010-03-28 Thread Ed Propsner
I had things a bit backwards. Username and Password fields are in fact present in the array when the form submits to the add action (however the password was plain text and not hashed when saved). The problem I was encountering is pulling the data from the fields before the form is even submitted.

Re: Undefined index

2010-03-28 Thread Jeremy Burns
I endorse what Paul says. I, too, had built up my own library of code, but it got so complex (and probably not very good!) and I always seemed to be building and improving the library each time I faced a new challenge rather than developing my apps. This slowed down my delivery rate, and led me

Re: Undefined index

2010-03-28 Thread WebbedIT
Can you explain why you believe Cake/Auth is removing Username and Password? Can you boil this down to a very simple code example where a non ajax form submits all fields and your ajax form submits all fields minus the username and password? I have designed many sites with Cake and never had such

Re: Undefined index

2010-03-27 Thread Ed Propsner
n get is $this->data['User']['confirm_password']... >>>>>> >>>>>> Are you expecting more fields to be in the array? Are the fields you >>>>>> want inside the form in the view? >>>>>> >>>>>&

Re: Undefined index

2010-03-27 Thread Ed Propsner
t;> On 27 Mar 2010, at 05:00, Ed Propsner wrote: >>>>> >>>>> The only thing showing in the array is the field for >>>>> 'confirm_password', >>>>> >>>>> [code] >>>>> >>>>> Array >>

Re: Undefined index

2010-03-27 Thread WebbedIT
Your answer is in the cookbook :o) http://book.cakephp.org/view/630/observeField By default observeField serialises the field you are observing only. The last info box on the above page though states: To send up the entire form when the field changes use $options['with'] = Form.serialize( $('Fo

Re: Undefined index

2010-03-26 Thread Jeremy Burns
t;>>> ( >>>> [confirm_password] => test >>>> ) >>>> >>>> ) >>>> [/code] >>>> I'm having the same issue with the the username field. It's acting like >>>> the field d

Re: Undefined index

2010-03-26 Thread Ed Propsner
t;> >>>> The only thing showing in the array is the field for 'confirm_password', >>>> >>>> [code] >>>> >>>> Array >>>> ( >>>> [User] => Array >>>> ( >>>>

Re: Undefined index

2010-03-26 Thread Ed Propsner
[confirm_password] => test >>> ) >>> >>> ) >>> >>> [/code] >>> >>> I'm having the same issue with the the username field. It's acting like the >>> field doesn't exist. >>> >>> >>&

Re: Undefined index

2010-03-26 Thread Jeremy Burns
gt;>> [/code] >>> I'm having the same issue with the the username field. It's acting like the >>> field doesn't exist. >>> >>> On Sat, Mar 27, 2010 at 12:54 AM, Jeremy Burns wrote: >>> The reason I recommended that you exami

Re: Undefined index

2010-03-26 Thread Ed Propsner
Mar 27, 2010 at 12:54 AM, Jeremy Burns wrote: >> >>> The reason I recommended that you examine the data array is that >>> sometimes (and I often get confused with this myself) you need to double >>> check exactly where the item you are looking for sits in the ar

Re: Undefined index

2010-03-26 Thread Jeremy Burns
wrote: >> The reason I recommended that you examine the data array is that sometimes >> (and I often get confused with this myself) you need to double check exactly >> where the item you are looking for sits in the array. So if you can see the >> field you want, build the p

Re: Undefined index

2010-03-26 Thread Ed Propsner
e > field doesn't exist. > > > On Sat, Mar 27, 2010 at 12:54 AM, Jeremy Burns wrote: > >> The reason I recommended that you examine the data array is that sometimes >> (and I often get confused with this myself) you need to double check exactly >> where the item

Re: Undefined index

2010-03-26 Thread Jeremy Burns
e the item you are looking for sits in the array. So if you can see the > field you want, build the path to it by walking back up from it. If the path > is not right, you get the undefined index error. Is it worth pasting the > output here? > > > Jeremy Burns > jeremybu.

Re: Undefined index

2010-03-26 Thread Ed Propsner
can see the > field you want, build the path to it by walking back up from it. If the path > is not right, you get the undefined index error. Is it worth pasting the > output here? > > > Jeremy Burns > jeremybu...@me.com > > > On 27 Mar 2010, at 02:59, Ed Prop

Re: Undefined index

2010-03-26 Thread Jeremy Burns
the path is not right, you get the undefined index error. Is it worth pasting the output here? Jeremy Burns jeremybu...@me.com On 27 Mar 2010, at 02:59, Ed Propsner wrote: > I'm not sure why but I'm relatively sure that it's not recognizing the form > fields for

Re: Undefined index

2010-03-26 Thread Ed Propsner
fing with forms, ajax, validation, etc. trying to learn >> Cake. >> >> I have a form set up with a field for password[code] >> $form->input('User.password'); [/code] >> >> When I reference that field in the controller [code] $pw1 = >> $

Re: Undefined index

2010-03-26 Thread Ed Propsner
opsner wrote: > > I'm still goofing with forms, ajax, validation, etc. trying to learn Cake. > > I have a form set up with a field for password[code] > $form->input('User.password'); [/code] > > When I reference that field in the controller [code] $pw

Re: Undefined index

2010-03-25 Thread Jeremy Burns
/code] > > When I reference that field in the controller [code] $pw1 = > $this->data['User']['password'];[/code] > > I keep getting "undefined index for password." It looks okay, what else could > be the issue ? > > Also, I thought I

Undefined index

2010-03-25 Thread Ed Propsner
ssword']; [/code] I keep getting "undefined index for password." It looks okay, what else could be the issue ? Also, I thought I had the ajax helper figured out for the most part but there is still one field that just refuses to cooperate. [code] echo $html->tableCells(

Re: "Notice (8): Undefined index: 0" When attempting to place custom element

2009-10-20 Thread StkMtd
which page > > in the pages controller. It then assigns an integer value to the > > variable $pageNum, based on which of the 5 pages is currently being > > viewed. From here it spits out a with the menu item that is > > currently active styled with a unique CSS style. > >

Re: "Notice (8): Undefined index: 0" When attempting to place custom element

2009-10-20 Thread John Andersen
being > viewed. From here it spits out a with the menu item that is > currently active styled with a unique CSS style. > > See the code for nav.ctp here:http://bin.cakephp.org/saved/51689 > > Errors Received: > Notice (8): Undefined index: 0 [APP\views\elements\nav.ctp, line 5

"Notice (8): Undefined index: 0" When attempting to place custom element

2009-10-20 Thread StkMtd
iable $pageNum, based on which of the 5 pages is currently being viewed. From here it spits out a with the menu item that is currently active styled with a unique CSS style. See the code for nav.ctp here: http://bin.cakephp.org/saved/51689 Errors Received: Notice (8): Undefined index: 0 [APP\

Undefined index: id [CORE/cake/libs/model/model.php, line 1312]

2009-09-11 Thread Eduardo Romero
Hi folks I have an HABTM relation table with no id, Cake complains when saving: Undefined index: id [CORE/cake/libs/model/model.php, line 1312] The table looks like: examenes_referencias referencia_id examen_id I changed the line 1312 to this: http://bin.cakephp.org/saved/50559 No error

Re: Save HABTM, Undefined index: id

2009-08-30 Thread Wilson
Thanks Martin! That works. Not quite sure why, but I've added an 'id' field to my join table. For the multi-saves, there's no error, but nothing is written to the field? Anyhow, I appreciate your help. Wilson On Aug 17, 4:02 am, Martin Westin wrote: > Which model doesn't have anidfield? > >

Re: Save HABTM, Undefined index: id

2009-08-17 Thread Martin Westin
> > Anytime I save a HABTM relationship, I always get this error: > > Notice (8): Undefined index:  id > > Everything works, but of course, this is annoying when I'm not in > production mode.  There is no plain 'id' in the model. > > Done a bit of resea

Save HABTM, Undefined index: id

2009-08-16 Thread Wilson Sheldon
Hi everyone, Anytime I save a HABTM relationship, I always get this error: Notice (8): Undefined index: id Everything works, but of course, this is annoying when I'm not in production mode. There is no plain 'id' in the model. Done a bit of research on it, and found a few oth

Re: undefined index?

2009-07-06 Thread brian
On Mon, Jul 6, 2009 at 9:06 PM, keanoppy wrote: > > all index from the stages table, the output for $stage['Phase']['id'] > can be shown If you're getting an "undefined index" error, what is the next word in the error message? It should tell you which

Re: undefined index?

2009-07-06 Thread keanoppy
all index from the stages table, the output for $stage['Phase']['id'] can be shown for the table stages,i have: id(pk),phase_id(fk),status,duration,stagesname_id (fk),p_date,a_date,remarks,created,modified which part of the controller code? the output from debug: include - APP\views\stages\index.

  1   2   3   >