I know how to pass data to a page view via a data array in the controller but I am using a template which loads a nav view independently of the controller like this:
echo isset($nav) ? $this->load->view($nav) : '';
I want to pass dynamic data to the nav view but I don't want to load it separately for every page via the controller data array which would not be very DRY. Is there a way to pass it via code in the template?