[ Index ] |
|
Code source de Symfony 1.0.0 |
1 <?php 2 3 /* 4 * This file is part of the symfony package. 5 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11 /** 12 * @package symfony 13 * @subpackage controller 14 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 15 * @version SVN: $Id: sfConsoleController.class.php 3204 2007-01-09 18:50:08Z fabien $ 16 */ 17 class sfConsoleController extends sfController 18 { 19 /** 20 * Dispatches a request. 21 * 22 * @param string A module name 23 * @param string An action name 24 * @param array An associative array of parameters to be set 25 */ 26 public function dispatch($moduleName, $actionName, $parameters = array()) 27 { 28 try 29 { 30 // set parameters 31 $this->getContext()->getRequest()->getParameterHolder()->add($parameters); 32 33 // make the first request 34 $this->forward($moduleName, $actionName); 35 } 36 catch (sfException $e) 37 { 38 $e->printStackTrace(); 39 } 40 catch (Exception $e) 41 { 42 // wrap non symfony exceptions 43 $sfException = new sfException(); 44 $sfException->printStackTrace($e); 45 } 46 } 47 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |