Why can't the activitieDropdownlist value be obtained? At the end of this post, sincor will edit the view layer view & lt; form & nbsp; methodpost & gt; & nbsp; & nbsp; & nb why is the activitieDropdownlist value always inaccessible?
This post was last edited by sincor at 18:17:19
View
Controller layer
Public function actionDbdplist ()
{
$ M_subjectlist = new SubjectList ();
$ M_gradelist = new Grade;
$ This-> subject_list = SubjectList: model ()-> findAll ();
$ This-> grade_list = Grade: model ()-> findAll ();
// The findAll result is a data object. so let's take a look at it and convert it into an array:
Foreach ($ this-> subject_list as $ item)
{
$ Sb_list [$ item-> subject_id] = $ item-> subject_name;
}
Foreach ($ this-> grade_list as $ item)
{
$ Gd_list [$ item-> grade_id] = $ item-> grade_name;
}
$ Result = $ _ POST ['subject _ name'];
$ This-> render ('dbplist', array (
'M _ subjectlist '=> $ m_subjectlist,
'M _ gradelist' => $ m_gradelist,
'Subject _ list' => $ this-> subject_list,
'Grade _ list' => $ this-> grade_list,
'Sb _ list' => $ sb_list,
'Gd _ list' => $ gd_list,
'Result' => $ result,
'Model' => $ model ,));
}