How to get all the variables available in a view in PHP?
One possibility could be to do something like this:
$data['user'] = $user;$data['cart'] = $cart;$data['data'] = $data;$this->load->view('view', $data);
If you did something like this, then you could always access a data array that looked the same as before it was parsed for the view.
Then you could use something like print_r or whatever you wanted to take a look at the array.