hi all,
this is my urlManager:
in my TestController I have the action:
but when I call it (in POST) I get 400 bad request.
What am I doing wrong here?
thanks a lot
this is my urlManager:
'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array( 'tests/<testid:\d+>/<controller:\w+>/<id:\d+(\.\d+)?>'=>'<controller>/view', 'tests/<testid:\d+>/<controller:\w+>/<action:\w+>/<id:\d+(\.\d+)?>'=>'<controller>/<action>', 'tests/<testid:\d+>/<controller:\w+>/<action:\w+>'=>'<controller>/<action>', '<controller:\w+>/<id:\d+>'=>'<controller>/view', 'hose/<action:\w+>/<code:(.*)>'=>'hose/<action>', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', 'test/archived/<id:\w+-\d+>'=>'test/archived', 'test/reliable/<id:\w+-\d+>'=>'test/reliable', 'test/unreliable/<id:\w+-\d+>'=>'test/unreliable', 'test/successrateyes/<id:\w+-\d+>'=>'test/successrateyes', 'test/successrateno/<id:\w+-\d+>'=>'test/successrateno', 'hose/setrating/<testid:\w+-\d+>/<id:\w+-\d+>/<value:\w+-\d+>'=>'hose/setrating', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', ), 'showScriptName' => false, ),
in my TestController I have the action:
public function actionSave($id)
but when I call it (in POST) I get 400 bad request.
What am I doing wrong here?
thanks a lot