Ich möchte meinem Redirect auch eine Variable übergeben, jedoch steht in der Doku, dass nur Controller & Action übergeben werden kann.
Redirects the browser to the specified URL or route (controller/action).
Gibt es eine andere Methode controller/action/parameter???
Weiter heißt es
the URL to be redirected to. If the parameter is an array, the first element must be a route to a controller action and the rest are GET parameters in name-value pairs.
Ok, gelesen und getan
$this->redirect(array('controller/action', '2'));erzeugt mir
http://localhost/blog2/controller/action/0/2
-------------------------------------------------------------------------
$this->redirect(array('controller/action', 'value' => '2'));erzeugt mir
http://localhost/blog2/controller/action/value/2
-------------------------------------------------------------------------
Aber ich will das hier
http://localhost/blog2/controller/action/2
mfg
yii

Help














