I know that we must use app controller or componant for common logic but i gave my anwser according to her question "how to call one function of one contoller into another controller".
but just explain me if i use my code ,what is drawback or side effect of it.
Thanks in advance
On Tue, Jul 17, 2012 at 5:31 PM, AD7six <andydawson76@gmail.com> wrote:
On Tuesday, 17 July 2012 13:36:24 UTC+2, Bharat Maheshwari wrote:I just know how to solve problem easily doesn't matter how
If you really worried about the logic then put a great code here and i assure i will also use your code
So please guide me also.now-3 people have already done that, in the context of getting model data you implement:$foo = ClassRegistry::init('ModelName')->getDetails($userId);i.e. here->model->doSomethinginstead ofhere->dispatcher->router->controller(->component initialization)->model->doSomethingin 1.3 you'd suffer a significant performance penalty using requestAction - that's not true any more but why put more code and logic between you and the data you need?AD--
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
No comments:
Post a Comment