Hello ,

Answer 1 ) Yes , The Post object is automatically created whithin the
PostsController

Answer 2 )
http://chetan4cake.blogspot.in/2012/04/import-model-in-controller.html

Thanks
Chetan

On Sun, Jul 1, 2012 at 8:07 AM, Marcelo Custódio
<marcelocusto...@gmail.com>wrote:

> Suppose I have the classic Post model and I've created an Author model too.
>
> I have some basic questions:
>
> (1) The Post object is automatically created whithin the PostsController ?
>
> (2) In order to create an instance of Post whithin AuthorsController, is
> the only way with
>
> $this->Post = ClassRegistry::init('Post');
>
> Please notice that by doing " $this->Post " I assume the Post variable
> will be created in this line. Am I right ?
>
> Thank you in advance!
>
> --
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to