import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -18,10 +18,19 @@
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
/** Zend_Controller_Action_HelperBroker */
|
||||
/**
|
||||
* @see Zend_Controller_Action_HelperBroker
|
||||
*/
|
||||
require_once 'Zend/Controller/Action/HelperBroker.php';
|
||||
|
||||
/** Zend_Controller_Front */
|
||||
/**
|
||||
* @see Zend_Controller_Action_Interface
|
||||
*/
|
||||
require_once 'Zend/Controller/Action/Interface.php';
|
||||
|
||||
/**
|
||||
* @see Zend_Controller_Front
|
||||
*/
|
||||
require_once 'Zend/Controller/Front.php';
|
||||
|
||||
/**
|
||||
@ -30,7 +39,7 @@ require_once 'Zend/Controller/Front.php';
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
abstract class Zend_Controller_Action
|
||||
abstract class Zend_Controller_Action implements Zend_Controller_Action_Interface
|
||||
{
|
||||
/**
|
||||
* @var array of existing class methods
|
||||
@ -462,19 +471,19 @@ abstract class Zend_Controller_Action
|
||||
* overridden to implement magic (dynamic) actions, or provide run-time
|
||||
* dispatching.
|
||||
*
|
||||
* @param string $methodName
|
||||
* @param array $args
|
||||
* @param string $methodName
|
||||
* @param array $args
|
||||
* @return void
|
||||
* @throws Zend_Controller_Action_Exception
|
||||
*/
|
||||
public function __call($methodName, $args)
|
||||
{
|
||||
require_once 'Zend/Controller/Action/Exception.php';
|
||||
if ('Action' == substr($methodName, -6)) {
|
||||
require_once 'Zend/Controller/Action/Exception.php';
|
||||
$action = substr($methodName, 0, strlen($methodName) - 6);
|
||||
require_once 'Zend/Controller/Action/Exception.php';
|
||||
throw new Zend_Controller_Action_Exception(sprintf('Action "%s" does not exist and was not trapped in __call()', $action), 404);
|
||||
}
|
||||
|
||||
require_once 'Zend/Controller/Action/Exception.php';
|
||||
throw new Zend_Controller_Action_Exception(sprintf('Method "%s" does not exist and was not trapped in __call()', $methodName), 500);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user