I want to put projecct dependent custom class in zend folder structure. I googled and found that we can put it in models folder, but we use models folder for database related classes. So I am confuse. Please help where can i put it so i can access it by directory mapping?
I want to put projecct dependent custom class in zend folder structure. I googled
Share
This is my way:
I create in library path, folder ‘My’.
There I put file Utils.php.
So in Utils.php I have class
in configs/application.ini autoload namespace ‘My’ with this line:
So in controller you can use that class like
Other way, you can autoload that folder(My) in bootstrap