[eluser]huzzi[/eluser]
Thanks for your reply, in which model do i create the function? is there a model for the whole site like a gobal model or something?
Would you be able to show me some code about parent controller?
thanks alot for your help.
[quote author="Jemgames" date="1221174983"]Use a model!
Create all the functions in the model, then just call "$this->model_name->get_menu()" or whatever in your controller.
For real DRY, create a parent controller that all other controllers inherit from. This way you can call all the code from your parent controller, and all the children controllers will have access to it.[/quote]