I currently have a partial called header.php which holds my site navigation among other things. Within this header site navigation is currently hard coded. This hard coded navigation could be set dynamically from the data base however.
My plan is to create a custom helper class, in here will be a function which queries a model and returns the dynamic navigation correctly formatted.
I will then load the helper in my view (header.php), like so:
$this->load->helper('nav helper');
echo all_the_nav();
My question is, is this the correct approach to use in this instance? Information with regards to helper classes is conflicting, some sources state it's not advisable, others state it's fine.