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
In your controller you can pass
$data['poll'] = "Your results";
In your view you can call
echo $poll;