• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.