first commit
This commit is contained in:
36
ZeedFramework/library/Fit/Controller/Dispatcher.php
Normal file
36
ZeedFramework/library/Fit/Controller/Dispatcher.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Playcool Project
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* http://www.playcool.com/license/ice
|
||||
*
|
||||
* @category ICE
|
||||
* @package ChangeMe
|
||||
* @subpackage ChangeMe
|
||||
* @copyright Copyright (c) 2008 Zeed Technologies PRC Inc. (http://www.inews.com.cn)
|
||||
* @author xSharp ( GTalk: xSharp@gmail.com )
|
||||
* @since 2009-8-11
|
||||
* @version SVN: $Id$
|
||||
*/
|
||||
|
||||
class Fit_Controller_Dispatcher extends Zend_Controller_Dispatcher_Standard
|
||||
{
|
||||
/**
|
||||
* Formats a string into an action name. This is used to take a raw
|
||||
* action name, such as one that would be stored inside a Zend_Controller_Request_Abstract
|
||||
* object, and reformat into a proper method name that would be found
|
||||
* inside a class extending Zend_Controller_Action.
|
||||
*
|
||||
* @param string $unformatted
|
||||
* @return string
|
||||
*/
|
||||
public function formatActionName($unformatted)
|
||||
{
|
||||
$formatted = $this->_formatName($unformatted, true);
|
||||
return strtolower(substr($formatted, 0, 1)) . substr($formatted, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// End ^ LF ^ UTF-8
|
||||
Reference in New Issue
Block a user