Try ClassRegistry::init('Post');

On Nov 14, 7:55 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> Marcelo is wrong totally. App::import only include model file but not
> create and initialize model for you as loadModel will do.
>
> On Nov 14, 6:10 am, Scott Dahl <scottmd...@gmail.com> wrote:
>
> > Marcelo,
>
> > Thanks for the update.  I was unaware of that.  I will stop using that and
> > update my methods.  Thanks again.
>
> > Scott
>
> > On Fri, Nov 13, 2009 at 12:11 PM, Marcelo Andrade 
> > <mfandr...@gmail.com>wrote:
>
> > > On Fri, Nov 13, 2009 at 3:06 PM, Scott Dahl <scottmd...@gmail.com> wrote:
> > > > $this->loadModel('ModelName');
> > > > $results = $this->ModelName->find('list');
>
> > > "loadModel" is deprecated.  Use
> > > App::import('model', 'ModelName');
> > > instead.
>
> > > Best regards.
>
> > > --
> > > MARCELO DE F. ANDRADE
> > > Belem, PA, Amazonia, Brazil
> > > Linux User #221105
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "CakePHP" group.
> > > To post to this group, send email to cake-...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.c
> > >  om>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=.

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=.


Reply via email to