Case Insensitive URLs with Zend Framework

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Case Insensitive URLs with Zend Framework

Post by onion2k »

How do I set Zend Framework, specifically Zend Application, to use case insensitive URLs? At the moment if I go to domain.com/FAQs it loads the FaqsController object fine but then it tries to use a view called "fa-qs/index.phtml". Where is that hyphen coming from?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Case Insensitive URLs with Zend Framework

Post by Eran »

I've never experienced this. No matter what case the URLs I put in my ZF application it always treats it as lowercase
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Case Insensitive URLs with Zend Framework

Post by onion2k »

I've spent a heck of a lot of time on it now and I've still not figured out the problem. I can only assume it's something to do with Zend Application and how it handles case in URLs. Maybe I'll be able to fix it with more tinkering. Hope so anyway.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Case Insensitive URLs with Zend Framework

Post by Eran »

What version of the framework are you using? you could check their issue tracker, there might be a fix for this
Post Reply