Hello,

I think the following url will help you.

http://arafats.info/how-to-call-function-of-a-controller-from-another-controller-in-cakephp/



On Tue, Aug 14, 2012 at 8:57 PM, Chetan Varshney
<[email protected]>wrote:

> You should put common functions in app controller or in component. Calling
> a controller function in other controller is not good practice. However you
> can import target controller in controller.
>
> App::import("Controller", "Target");
> $target = new TargetController;
> $target->anyFunction();
>
>
>
>
>
> On Tue, Aug 14, 2012 at 4:24 PM, sooryender <[email protected]> wrote:
>
>>
>>
>> On Tuesday, July 17, 2012 11:57:16 AM UTC+5:30, sneha kulkarni wrote:
>>>
>>> how i can call one function of one controller into another
>>> controller.plz help
>>>
>>  --
>> 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].
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>>
>
>
>
> --
> Thanks & Regards
>
> Chetan Varshney
> Director of Ekta Softwares
> Noida India
> Website- EktaSoftwares.Com <http://www.ektasoftwares.com>
> Email- [email protected]
> Skype- chetan-varshney
> Mob no- +919891538749
>
>
>  --
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Thanks & Regards.
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)*
*Deputy Project Manager, *Software Solutions
Grameen Solutions
Contact Information:
**
**
Cell : +8801816 536 901, +880197 *333* 2 888
Web: http://arafats.info
<http://arafats.info>

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to