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

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

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: