I use the Zend Framework for my site and just created a special "api" module to create ... Well, the API.
Now I have many controllers in my module, and I would like to create subdirectories in this controller directory in order to "remove" it. My new structure would be something like this:
- controllers/
- controllers/contents/[controllers]
- controllers/users/[controllers]
- controllers/misc/[controllers]
However, I cannot completely find which URLs and redirects with Zend_Controller_Router_Route can be displayed on these controllers. Is it possible to do this anyway, should I just go back to the normal structure and put all my controllers in the same directory?
I tried using _ separators, as suggested by smack0007, and as it seemed logical, given how the Zend Framework usually refers to subdirectories, but I got an error.
Edit: deleted the long text of the error because it was not related to the question, because it was only a problem, because I did not use the propre argument, believing that I had to put a capital letter in the first letter of the directory. Now everything is working well.
source
share