ta oublier public function actionqddunittobrochure "($get_property_id)"{ et tu avais un "}" en trop, pour le reste je ces pas j'ai pas ton code entier
public function actionqddunittobrochure($get_property_id){
if(isset($_GET'property_id']))
{
$model->property_id=$_GET'property_id'];
if($model->save())
$this->redirect(array('create',
'brochure_id'=>$model->brochure_id,
'TitleName'=>$_GET'TitleName'],
'PropUnitType'=>$_GET'PropUnitType'],
'PropLocation'=>$_GET'PropLocation'],
'ProjectType'=>$_GET'ProjectType'],
'MaxFinishedYear'=>$_GET'MaxFinishedYear'],
'MinFinishedYear'=>$_GET'MinFinishedYear'],
'MinRent'=>$_GET'MinRent'],
'MaxRent'=>$_GET'MaxRent'],
'BMinRent'=>$_GET'BMinRent'],
'BMaxRent'=>$_GET'BMaxRent'],
'Pet'=>$_GET'Pet'],
'Rented'=>$_GET'Rented'],
));
}
$propetryunit =new PropUnit();
//$search_list = array('PropUnitType','PropLocation','FinishedYear','ProjectType','PriceRent','Title');
$this->render('create',array(
'model'=>$model,
'dataProvider'=>$dataProvider,
'brochure_id'=>$model->brochure_id,
'choosedataProvider'=>$chooseUnitDetail,//choosedataProvider,
//'sql'=>$propcondition,
//'Testdata'=>$choosedataProvider,
//'count'=>$count,
'property'=>$propetryunit,
'modelUnit'=>$modelUnit,
'TitleName'=>$_GET'TitleName'],
'PropUnitType'=>$_GET'PropUnitType'],
'PropLocation'=>$_GET'PropLocation'],
'ProjectType'=>$_GET'ProjectType'],
'MaxFinishedYear'=>$_GET'MaxFinishedYear'],
'MinFinishedYear'=>$_GET'MinFinishedYear'],
'MinRent'=>$_GET'MinRent'],
'MaxRent'=>$_GET'MaxRent'],
'BMinRent'=>$_GET'BMinRent'],
'BMaxRent'=>$_GET'BMaxRent'],
'Pet'=>$_GET'Pet'],
'Rented'=>$_GET'Rented'],
));
}
et pour le utiliser ces sa
actionqddunittobrochure($_GET'property_id']);