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->doSomething 

instead of

here->dispatcher->router->controller(->component 
initialization)->model->doSomething

in 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to