Welcome Guest, Not a member yet? Register   Sign In
how can i send array variable to view file by controller file
#1

[eluser]Unknown[/eluser]
I am using module for get record, and store database value in array variable so that i can use this variable to view file but how can i do this i am very confuse.
#2

[eluser]dtrenz[/eluser]
Code:
class Page extends Controller {

   function index()
   {
      $data['db_array'] = $db_array;
      $this->load->view('page', $data);
   }

}


This is the one of the most basic concepts behind views. I recommend that you read the _______ manual: http://ellislab.com/codeigniter/user-gui...views.html




Theme © iAndrew 2016 - Forum software by © MyBB