I been at this for hours and still no luck. What I am trying to do is run a
simple query to find a user_id based on the Auth->id and pass the result to
the view.
This is being run in the students_controller which is checking the TEACHERS
table. In the view where I have wantsAccess all that gets displayed is
"Array".
view: <?php echo $wantsAccess; ?>
$this->set('wantsAccess', $this->Teacher->find('all', array( 'conditions' =>
array('Teacher.user_id' => $this->Auth->user('id')),'fields' =>
array('Teacher.id')
)
));
Can someone explain me how to run just a simple query.
Dave
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---