Re: find('list') in view - noob problem
I didn't take it personally . . . .i'm just really lazy today and what i've read (the manual over and over) doesn't help me in my overall goal . . . .was just looking for real world uses for populating a hidden field value from a belongsTo model . . .i'll keep reading, i missed something. . . .thanks On Jun 6, 2:27 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 2008 at 2:04 PM, Rich <[EMAIL PROTECTED]> wrote: > > > Kinda figured i'd get a response like that. . . . > > Don't take it personally, I never do. > > What do you need the data to look like? > > -- > Chris Hartjes > Internet Loudmouth > Motto for 2008: "Moving from herding elephants to handling snakes..." > @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: find('list') in view - noob problem
On Fri, Jun 6, 2008 at 2:04 PM, Rich <[EMAIL PROTECTED]> wrote: > > Kinda figured i'd get a response like that. . . . > Don't take it personally, I never do. What do you need the data to look like? -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: find('list') in view - noob problem
Kinda figured i'd get a response like that. . . . On Jun 6, 1:59 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 2008 at 1:36 PM, Rich <[EMAIL PROTECTED]> wrote: > > > I was actually following what cake baked for me but it did create the > > list for me which was not what i wanted to do. Every time I try to > > change the type of find to something else . . i still don't get the > > data. . . kinda lost here. > > find('list') is generally used when you want to create a list of > entries for a form select field. > > I think you need to go tohttp://book.cakephp.organd read through it > so you understand what you might be doing wrong. > > -- > Chris Hartjes > Internet Loudmouth > Motto for 2008: "Moving from herding elephants to handling snakes..." > @TheKeyBoard:http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: find('list') in view - noob problem
On Fri, Jun 6, 2008 at 1:36 PM, Rich <[EMAIL PROTECTED]> wrote: > > I was actually following what cake baked for me but it did create the > list for me which was not what i wanted to do. Every time I try to > change the type of find to something else . . i still don't get the > data. . . kinda lost here. find('list') is generally used when you want to create a list of entries for a form select field. I think you need to go to http://book.cakephp.org and read through it so you understand what you might be doing wrong. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: find('list') in view - noob problem
I was actually following what cake baked for me but it did create the list for me which was not what i wanted to do. Every time I try to change the type of find to something else . . i still don't get the data. . . kinda lost here. On Jun 6, 1:28 pm, "b logica" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 2008 at 11:36 AM, Rich <[EMAIL PROTECTED]> wrote: > > > I'm having a problem reading data in my view from my controller. > > > this is in my controller: > > $user = $this->Profile->Users->find('list'); > > $this->set(compact('users'); > > > in my view I need to use a hidden control to pass this data on to the > > next controller but I can't get the value to display in the $form- > >>hidden control. > > > this is my view: > > hidden('users_id'); ?> > > 'User.id' > > > > > my debug shows this: > > Array > > ( > > [users] => Array > > ( > > [8] => 8 > > ) > > ) > > Don't compact the data. Are you sure you want to be doing a > find('list')? That's usually used for creating lists. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: find('list') in view - noob problem
On Fri, Jun 6, 2008 at 11:36 AM, Rich <[EMAIL PROTECTED]> wrote: > > I'm having a problem reading data in my view from my controller. > > this is in my controller: > $user = $this->Profile->Users->find('list'); > $this->set(compact('users'); > > in my view I need to use a hidden control to pass this data on to the > next controller but I can't get the value to display in the $form- >>hidden control. > > this is my view: > hidden('users_id'); ?> 'User.id' > > my debug shows this: > Array > ( > [users] => Array > ( > [8] => 8 >) > ) > Don't compact the data. Are you sure you want to be doing a find('list')? That's usually used for creating lists. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
find('list') in view - noob problem
I'm having a problem reading data in my view from my controller. this is in my controller: $user = $this->Profile->Users->find('list'); $this->set(compact('users'); in my view I need to use a hidden control to pass this data on to the next controller but I can't get the value to display in the $form- >hidden control. this is my view: hidden('users_id'); ?> my debug shows this: Array ( [users] => Array ( [8] => 8 ) ) I guess i could use a session but I wanted to find out how this is done and what I'm doing wrong before I move on to better options. Thanks, Rich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---