|
Revision 3204, 1.1 kB
(checked in by fabien, 5 years ago)
|
updated phpdoc for the controller/ directory
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id Rev Date
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 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 |
|
|---|
| 31 |
$this->getContext()->getRequest()->getParameterHolder()->add($parameters); |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
$this->forward($moduleName, $actionName); |
|---|
| 35 |
} |
|---|
| 36 |
catch (sfException $e) |
|---|
| 37 |
{ |
|---|
| 38 |
$e->printStackTrace(); |
|---|
| 39 |
} |
|---|
| 40 |
catch (Exception $e) |
|---|
| 41 |
{ |
|---|
| 42 |
|
|---|
| 43 |
$sfException = new sfException(); |
|---|
| 44 |
$sfException->printStackTrace($e); |
|---|
| 45 |
} |
|---|
| 46 |
} |
|---|
| 47 |
} |
|---|
| 48 |
|
|---|