Monday, July 16, 2012

Re: how to call one function of one contoller into another controller

While you can do what Chetan says - you should not be required to that...

Consider creating a component if several of your component share the
same code OR slight less worse than above create a method in app
controller

HTH
Tarique

On Tue, Jul 17, 2012 at 12:16 PM, Chetan Patel
<chetanspeed511987@gmail.com> wrote:
> hi
>
> Please refer below code
>
> App::import('Controller', 'Posts');
>
> $Posts = new PostsController;
>
> $Posts->constructClasses();
>
>
>
>
>
> Thanks
> Chetan Patel
>
>
>
>
>
>
>
>
>
>
>
>
> On Tue, Jul 17, 2012 at 11:57 AM, sneha kulkarni
> <sneha.kulkarni122@gmail.com> wrote:
>>
>> how i can call one function of one controller into another controller.plz
>> help
>>
>> --
>> 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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate