simpli Posted June 8, 2009 Share Posted June 8, 2009 Hi, I tought I wrote this post and posted it but I can't see it in the forums so here goes: I have a class called model called CostTreePath. I have to have my classes name like that as I find costtreepath to be unreadable. I also name my controller CostTreePath. From Zend's documentation I read that I should have access to my controller by entering the /applicationpath/cost-tree-path or /applicationpath/cost.tree.path. This doesn't work however. I get an error message when I enter this path. When I go to /applicationpath/costtreepath, my stuff is there and it works. This is a direct quote from the ZF doc. If you wish to have your controller class or action method name have multiple MixedCasedWords or camelCasedWords, you will need to separate those words on the url with either a '-' or '.' (though you can configure the character used). As an example, if you were going to the action in FooBarController::bazBatAction(), you'd refer to it on the url as /foo-bar/baz-bat or /foo.bar/baz.bat. Is there something I understood wrong? Can anyone clarify why it's not the expected path that's working? Thanks JR Quote Link to comment https://forums.phpfreaks.com/topic/161349-camel-case/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.