Help! How to set some general (global) vaiables? |
[eluser]gyo[/eluser]
This issue has been discussed a lot in the forum, next time search before. I guess you need to load a view in a view: Code: $data['header'] = $this->load->view('header', '', true); This way the 'main_template' will be sent to the browser, and the variable '$header' inside it will be replaced with the 'header' view. Note that the 'header' has been loaded as data with the 'true' paramenter, so that it's ready to be embedded in another view. FYI: http://ellislab.com/codeigniter/user-gui...views.html |
Welcome Guest, Not a member yet? Register Sign In |