⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

show the firstname, middle name, lastname instead of lastname only (set_relation())



Levi Lim

Levi Lim
  • profile picture
  • Member

Posted 23 January 2014 - 13:51 PM

    function assign_students(){
        $this->is_logged_in();
        $crud = new grocery_CRUD();
        $crud->set_table('students');
        $crud->set_subject('Student Assignment');
        $crud->set_relation('Section_ID','section_name','Section_Description');
        $crud->set_relation('SY_Section_ID','school_year','SY_name');
        $crud->set_relation('Student_ID','student_name','S_Lname');
        $output = $crud->render();
        $this->session->set_userdata(array('title' => "Activity"));
        $this->load->view('header',$output);    
        $this->load->view('body',$output);
    }


woo.png

 

woo.png

student_name fields

 

Good Day! :)

 

It only displays the lastname field, how can i display its complete name.
Thank you very much!