Calling 2 controllers? |
[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 Code: // close some open divs from the content 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.
[eluser]Seppo[/eluser]
mysql_query ? mysql_num_rows?? Oh, no... That's definetly not ci-style Why don't you add your model to the autoload config file, and inside the model constructor you call the method you need and assing those vars to the view? Code: class Menu extends Model { |
Welcome Guest, Not a member yet? Register Sign In |