Uh you should never do that. Why would you import a controller to do
an add()?

On Oct 9, 10:27 am, Aivaras <[email protected]> wrote:
> Hey,
>
> App::import('Controller', 'PostsController');
> $this->Posts = new PostsController();
> $this->Posts->add($this->data);
>
> Cheers,
> Aivaras
>
> On Fri, Oct 9, 2009 at 15:37, toneee <[email protected]> wrote:
>
> > Hi Guys,
>
> > I wonder if anyone can help?
>
> > How would I call an add function in one controller in another
> > controller?
>
> > I have read about request action and how its bad, but now im a little
> > stuck on how to carry on.
>
> > Hope someone can help. Thankyou!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to