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'); ?>

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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to