View Single Post
  #2 (permalink)  
Old 06-20-2008, 07:34 PM
jweber jweber is offline
Senior Member
 
Join Date: Jun 2008
Location: Florida
Posts: 108
Default

To use an underscore in the action name you need to:

1)Change the word delimiter used by ZF. The default is a dash. I have the following line of code in my bootstap to do this:
Code:
$frontController = Zend_Controller_Front::getInstance();
$dispatcher = $frontController->getDispatcher();
$dispatcher->setWordDelimiter(array('-', '.', '_'));
2)Camelcase your action method name:
Code:
public function manageUsersAction()
{
    // code goes here...
}
3)Place a dash in the name of your view script, in this case manage-users.phtml
Reply With Quote