I just discovered Grocery CRUD and it looks really promising...
BUT I have a small problem...
In my controller I have something pretty simple like this:
public function __construct() { parent::__construct(); $this->load->library('grocery_CRUD'); } public function index() { $crud = new grocery_CRUD(); $crud->set_table('table_name'); $crud->set_subject('Name'); $output = $crud->render(); $this->load->view('view.php', $output); }
And in my view I have a simple echo
<?php echo $output; ?>
And this works just fine...
But the problem I have is how do I pass more data from controller to the view.
I have tried passing array for example
$data['output'] = $output; $data['some_more_data'] = 'Some random data'; $this->load->view('view.php', $data);
But this simply won't work...
What am I doing wrong?
Anyone have a solution for this?
PS: I'm a newbie when it comes to CI (and this CRUD) ...