Results 1 to 1 of 1
Oct 16, 2007, 19:50 #1
- Join Date
- Oct 2007
- 0 Post(s)
- 0 Thread(s)
Help with Zend Framework routing issue
I am attempting to create a modular web application using the Zend Framework and am having a tremendous amount of problems figuring out the routing components. Ideally, I want to have a setup so that I can have content published with URL's such as:
In both the above examples, no module, controller, or action is specified in the URL. In the second example, the projects and projecta portions are merely containers or virtual folders used to organize content. I'm trying to find a way to have URL's like this forward to a CMS / Page module & controller. At the same time, I want the standard routes :module/:controller/:action/arams work for other modules.
I've read through the online manual, as well tried to follow additional tutorials and samples in various blogs, articles, etc. Nothing seems to work.
Ideally, I'd also like to implement a multi-lingual feature where a URL such as:
will specify the users language preference (assuming that the content is available in that language). I've tried setting this up with something like :lang/:module/:controller/:action, but if the :lang parameter is left out, than is simple takes the module portion as the lang param and so on.
It seems that the URL's I am looking for are possible, but I'm just unable to figure out how to do it. From what I can figure out, it seems I need a custom router class, but my attempts at this have failed as well.
If anyone can help point me in the right direction and get me to the point where I can understand what I need to do, that would be great. I'm fairly new to the Zend Framework, so I just need some help making sense of the router component.