Jump to content

Camel Case


simpli

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.