In my symfony application I would like to create custom php class. And access that class via back end and front end. Can someone show me which folder should I put that class and how to access it?
Thanks in advance!
In my symfony application I would like to create custom php class. And access that class via back end and front end. Can someone show me which folder should I put that class and how to access it?
Thanks in advance!
收起
You can put it in the /lib
folder. There it'll be autoloaded by Symfony .
It's recommended to create subfolders in /lib
to group classes/files by their function.
(for example a directory /lib/routing
for classes that concern the routing).
报告相同问题?