I want to pass $data
from the controller named poll
to the results_view
however I am getting an undefined variable error.
You just need to create a array, you using codeigniter right?
Example on controller:
$data['hello'] = "Hello, world";
$this->load->view('results_view', $data);
In de page "results_view" you just have to:
Obs: You can create n datas, just pay attention in the name and make it a array.
Obs²: To use the data use the key of the array with a echo.