What's the best practice in this situation? |
[eluser]Althalos[/eluser]
Hi! I have a list of menu items in a database. They are going to be outputted on every single page throughout my application. What's the best way to achieve this, using the DRY principle? The best I have been able to figure out is to autoload the model, but I still have to have a lot of duplicate code because I need to pass the information from the model to the view in each controller? Can I do it directly in the view instead?
[eluser]rogierb[/eluser]
Take a look at the FAQ @ http://codeigniter.com/wiki/FAQ or here http://codeigniter.com/wiki/Header_and_F...very_page/ This question has been asked numerous times and answered in the forum aswell |
Welcome Guest, Not a member yet? Register Sign In |