Welcome Guest, Not a member yet? Register   Sign In
I can't understand how to use MVC ...
#4

[eluser]Bart v B[/eluser]
Ok topmenu and side bar are not static..

How are they build on?
I mean, they are depending on the controllername or something?
Then you can also do that the same way as i explained.

Other option is to use a template library.
for example https://github.com/philsturgeon/codeigniter-template/

In that case you can do something like this:
http://philsturgeon.co.uk/news/2010/02/C...ing-it-DRY

I don't know how complicated your site is, but if there ar just a few classes, models, and view files, then you better off with my first example.


Messages In This Thread
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 11:34 AM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 12:00 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 12:05 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 12:20 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 12:24 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 12:41 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 12:56 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 01:00 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 01:10 PM
I can't understand how to use MVC ... - by El Forum - 08-05-2011, 01:14 PM
I can't understand how to use MVC ... - by El Forum - 08-06-2011, 11:36 AM
I can't understand how to use MVC ... - by El Forum - 08-06-2011, 11:38 AM
I can't understand how to use MVC ... - by El Forum - 08-06-2011, 11:40 AM
I can't understand how to use MVC ... - by El Forum - 08-06-2011, 11:52 AM
I can't understand how to use MVC ... - by El Forum - 08-07-2011, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB