CodeIgniter Forums

Full Version: how can i send array variable to view file by controller file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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