I want to pass $data from the controller named poll to the results_view however I am getting an undefined variable error.
$data
poll
results_view
you can do it this way
defined array in controller
$data['hello'] = "hello";
and pass variable to view
echo $hello;