url routing - Zend Framework : Subdirectories in controllers directory -


I am using the Zend Framework for my website, and just created a special module "API" to create. Well, an API.

Now, I have too many controllers in my module and I will be "clean" my new structure to create a subdirectory in the directory of these controllers:

  - Controllers / - Controller / Content / [Controller] - Controller / User / [Controller] - Controller / Alloy / [Controller]  

However, I'm unable to find myself completely Types of URLs and Redirects of Zend_Controller_Router_Route Industries that can map these controllers. Is it possible to do some way or should I go back to the normal structure and put all our controllers in the same directory?


I tried to use the separators suggested by smack0007 and as it seems logical how the Zend Framework commonly refers to the subdirectories, but I got an error. Edit: The long error text was removed because it was not related to the question because it was only a problem because I did not use the prop case, I believe that the uppercase directory Had to keep in the first letter. Everything is fine now

I've returned it to version 1.5 but I do not know that it will work anymore .

You need to prefix your controllers with "{FOLDER} _" and then use the full name in the URL.

Then in your case you will have a controller:

  contents_FooController  

and one way:

  / contents_foo / index  

Comments

Popular posts from this blog

bytearray - Removing trailing nulls from byte array in C# -

linux - Authenticating GTK app to run with root permissions -

WPF TextBlock Overflow Text to the Left -