Je code suivant dans mon modèle StudentsForm:Comment appeler la fonction d'un modèle dans un autre modèle yu 1
public function attributeLabels()
{
return array(
'id' => 'ID',
'sname' => 'Name',
'fill' => ' Date',
);
}
et dans mon TeacherForm dans mon modèle:
public function attributeLabels()
{
return array(
'id' => 'ID',
'tname' => ' Teacher Name',
'fill' => ' Date',
);
}
Comment puis-je appelez attributeLabels() de StudentsForm dans TeachersForm. Les deux modèles sont situés dans un modèle