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:
> > <?php echo $form->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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---