[eluser]deco10[/eluser]
I have a header that consists of mostly static content with some dynamic content.
In plain ol' php I would just have my header_view.php file and included it after the body tag in my index.php.
That works assuming I'm putting all the php code at the top of each php file which is what I would do prior to using CI.
What I've gathered so far is to use a hook, which I seem to have working, but its not doing what I want.
ideally, when the include "header_view.php"; statement is executed it would first run some php code to prepare the page for display.
Now that I revisit what I have done, its closer to working then i thought, I just don't know if my methodology is best practice.
The problem I have now is that I can't seem to pass the data into "header_view.php" because its not displayed with $this->load->view("header_view.php");
and I don't know how else to do it.
So I either need to know how to do it a completely different and proper way or I need to know how to get data into the header_view.php script.
Regards,