Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-22-2007, 05:01 PM
Junior Member
 
Join Date: Oct 2007
Posts: 2
Smile Using dashes in action names

Hey everyone. I tried searching for this answer before posting my question, and nothing came up.

My question is as follows: I want to make my script views have dashes in between their names, like "page/this-page.phtml". Now, in my "page" controller, how would I format the Action to use the "-" in the phtml file?

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-24-2007, 02:52 PM
Junior Member
 
Join Date: Oct 2007
Posts: 3
Default

Quote:
Originally Posted by cvaughn001 View Post
Hey everyone. I tried searching for this answer before posting my question, and nothing came up.

My question is as follows: I want to make my script views have dashes in between their names, like "page/this-page.phtml". Now, in my "page" controller, how would I format the Action to use the "-" in the phtml file?

Thanks in advance.
Well, use camelCasing for the action name - in your case the action will be PageController::thisPageAction() and will be accessible via /page/this-page/ (in the default routing case)

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:25 AM.