I have a PostsController. I have a posts table. I can easily get the
information I need from that table. I am trying to get information
from my periods table, from my posts controller. I am confused on how
to best do that. This is how I get the information from my posts
table.
( I am getting all info in the posts table, where user_id = *logged in
user*, class_period = 1, and created on todays date.)
$this->set('period1', $this->Post->find('all', array(
'conditions'=>array('user_id'=>$this->Session-
>read('Auth.User.id'), 'class_period'=>1, 'created' => date('Ymd'))
)));
( I want to get all info in the periods table, where user_id=*logged
in user* )
But I do not know how to get the values of the periods table from the
PostsController.
Thanks!
--
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 group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php