1
我已經按照我的StudentsForm型號代碼:如何警予調用一個模型的功能在另一個模型1
public function attributeLabels()
{
return array(
'id' => 'ID',
'sname' => 'Name',
'fill' => ' Date',
);
}
,在我在我的模型TeacherForm:
public function attributeLabels()
{
return array(
'id' => 'ID',
'tname' => ' Teacher Name',
'fill' => ' Date',
);
}
我怎樣才能在TeachersForm中調用StudentForm的attributeLabels()。 兩款機型都位於一個模型