Controller call to View does not bring the parameters that are part of the Call
Posted on 2014-02-16
I have created a CodeIgniter MVC
The Controller loads the model in the constructor.
In the Index function there is a call to the model to get the details of two arrays needed to service two dropdown fields setting up a search based on the dropdown fields to focus on a selection of lower level entities
The calls to the model work fine and return the arrays I am expecting I have used var_dump to establish this.
When I call the view
" $this->load->view("Archery/header", $seasons, $leagues, $title);"
the header is rendered
but the $seasons, $leagues and $title variables are not visible in the view.
Can anybody recommend a way of passing the missing data?