05-20-2008, 02:14 AM
[eluser]xwero[/eluser]
check this templating helper for the header/footer including problem. Every view you load that extends the masterpage will have the same header and footer.
For the query i wonder if it needs to be executed on every page? As I don't see any variable I don't think so. You could make a view file with content that gets generated when there are changes in the backend. Then the footer could be something like this
you say
check this templating helper for the header/footer including problem. Every view you load that extends the masterpage will have the same header and footer.
For the query i wonder if it needs to be executed on every page? As I don't see any variable I don't think so. You could make a view file with content that gets generated when there are changes in the backend. Then the footer could be something like this
Code:
// close some open divs from the content
</div></div></div>
// include the menu
<?php $this->load->view('menu'); ?>
// end the page completely
</body>
</html>
you say
Quote: I’m looking for the ‘good’ way to do something like this, but it shouldn’t be more code than this, because that would be kind of stupidIf you want to do it the 'good' way there is going to be more code because what you have now is not segmented code.