RE: Model Question

2009-09-17 Thread Dave Maharaj :: WidePixels.com
on? So it just has bare 'Model' => array(                       'className' => 'Model',                        'foreignKey' => 'user_id',                       'dependent' => false, Dave -Original Message- From: bria

Re: Model Question

2009-09-17 Thread brian
'order' => array('Tag.created' => 'ASC', 'TAG.id' => 'ASC') But using 'created' should be sufficient as the id column *usually* remains the same. On Thu, Sep 17, 2009 at 8:46 AM, Dave wrote: > > A standard baked model may have something that looks like this: > > 'Tag' => array( >              

Re: Model question

2009-07-20 Thread womble
no, but yes. Have a model, but in it set var $useTable = false; On Jul 21, 3:55 pm, Binoy wrote: > Is it possible to create a new functionlity without model ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: Model question v1.2

2007-09-10 Thread Chris Hartjes
On 9/10/07, Troy Gilbert <[EMAIL PROTECTED]> wrote: > > Am I correct in my thinking that the reason data is returned this way > is for the scenario where a model has an association, e.g. if post had > a user: > > Array > ( > [Post] => Array ( [field1] => 'value', [field2] => 'value' ) > [U

Re: Model question v1.2

2007-09-10 Thread Troy Gilbert
> That's not a bug. Data is always returned in this format: > > Array > ( > [ModelName] => Array > ( > [fieldname1] => 'value' > [fieldname2] => 'value' > ) > ) Am I correct in my thinking that the reason data is returned this way is for the scenario w

Re: Model question v1.2

2007-09-07 Thread Chris Hartjes
On 9/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > If I use $this->set('post',$this->Post->read()); in the controller > > Why do I have to access it like this in the view: > > echo $post['Post']['id']; > > Shouldn't the proper way be echo $post['id']; > > Is this a bug? Has the spec chang