Hi!
I have several Utility Routines that i wan't to use in all Objects (Models, Controllers, Views,...).
For example i have a small Method called "getDataFromArray" that fetch a element from an Array or throws a CakeException if the key doesnt exists. Because of DRY i wan't to use it in *.
What is best practice to do so ?
Thanks!
Best regards,
Kai.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment