Re: doubt of join in cakephp

2012-03-28 Thread Loren Cole
There's a pretty good example of a join here . Essentially you want to do something like $records = $this->offerpromo->find('all', array( 'conditions' => array('Offerpromo.end_date <' . date()),

Re: multi-level Model associations behavior

2012-03-27 Thread Loren Cole
you could replace $test = $this->Test->read(null, $id); $test['Question'] = $this->Test->Question->find('all'); //I added this line... with $test = $this->Test->find('first', array( 'conditions'=>array('id'=>$id), 'recursive'=2 )); the conditions array indicates which test records to get

Re: Layout

2012-03-27 Thread Loren Cole
put the listview above your container in html and In your css: #LeftlistView { float: left; width: 15%; clear: both; } #container { width: 85%; float: right; margin: 0 auto; } On Tue, Mar 27, 2012 at 11:53 AM, alexkd wrote: > According to the above code > How can I s

Re: Proposal for "killer app"

2007-03-28 Thread Loren
in heartbeat if another framework offered similar power and better docs. Time is just too valuable. Thanks for reading, Loren --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to th

Elegant lookup handling--anyone?

2007-03-22 Thread Loren
values keyed to the "working" tables and fields of the database. Any help/insights would be appreciated. Thanks, Loren --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po