in below code:
class ProjectController extends Controller{
....
public function actionAddUser($id){
$projectUserForm = new ProjectUserForm();
$project = $this->loadModel($id);
$this->render('adduser', array(
'model' => $projectUserForm,
));
}
}
the model’s id is used in $this->loadModel($id), but I can not find it and how pass in controller. in Yii 1.1.4, function loadModel(), but in 1.1.6, loadModel($id).Where is it to be set?