I am making utility classes that will provide general methods for helping manipulate strings. I may also want one for arrays, math functions, etc. Should these be components? Vendors? Could I maybe make these into some sort of vendor package?
相关问题
- Change input value based on another input's va
- How to implement og:tag in each post?
- How to validate single field of a model in cakephp
- CakePHP: add/substract with save()?
- How to save multiple records in cakephp 3
相关文章
- How to force refresh of images & css files in Cake
- Cookie vs. Session based flash message
- CakePHP and GROUP BY
- CakePHP: Cannot modify header information - header
- CakePHP 3.0 Flash Message
- cakephp login redirect
- Conditional Component Loading in CakePHP
- how to get Video id from iframe of youtube in php
If they're general standalone libraries not tied to any particular step of the request cycle (controller, model, view), put them in
app/libs/
. You can import them usingApp::import('Lib', 'Foo')
.Personally I have two or three handy array functions I always use defined in
bootstrap.php
, which is another place to put a small amount of global stuff.