Tuesday, April 10, 2012

Re: CakePHP 2.0 Component Calling Helper

with 2.1 the issue should be easy to resolve.
there are now great ways to keep the code dry and still use all classes accordingly:

You would make a Cleaner lib in /Utility and then you can still use some CleanerHelper with internally calls the Lib class.
Try to keep the method static for the controller/component level. Then there is no need to initialize it.
The helper can still work as it used to.


Am Samstag, 22. Oktober 2011 01:35:13 UTC+2 schrieb majna:
there is 2.0 branch
https://github.com/CakeDC/comments/blob/2.0/Controller/Component/CommentsComponent.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: