In my Controller A
class Controller A extends Controller
{
public function action save()
{
$array1 = $_POST['array'];
$A = $this->redirect(array('controller B/insert','data'=>$array1));
echo $a;
}
}
controller B
class Controller B extends Controller
{
public function action Insert($data)
{
echo $data;
/*----code-----*/
return value;
}
}
I am newbie in yii framework. I have problem with, call controller b action Insert() from controller a with parameters. But I have error like "400 Your request is invalid.". I don't know how to fix it. please help me anyone to correct my code..! Sorry for my English.. Thank You..