Why does the value of Activitiedropdownlist never get to

Source: Internet
Author: User
Why is the value of Activitiedropdownlist not always available?
This post was last edited by Sincor on 2013-06-22 18:17:19

Views Layer 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 result of using FindAll is a data object so just deal with it a little bit. They convert the 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 (' dbdplist ', 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,));

}
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.