Best way to implement dynamic site-wide menu? |
Thanks ...
... So, taking your idea, I could create a Mycontroller, create the html in the construct function (thereby only running it once) and then rather than using the code I have in my controllers now: PHP Code: $this->data['title'] = ''; Simply have a simple render function like this in My_Controller: PHP Code: function _render($data = []) { and call it from my controller like: PHP Code: $this->data['title'] = ''; As I said I'm VERY rusty with this stuff so thanks for any help!! |
Welcome Guest, Not a member yet? Register Sign In |