CodeIgniter Forums
Load content .. and mantain the same layout? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Load content .. and mantain the same layout? (/showthread.php?tid=2429)



Load content .. and mantain the same layout? - El Forum - 08-05-2007

[eluser]ariok[/eluser]
Hi ..
I need to use a single layout where only contents change.
So i'll have in every pages the same menu and the same footer... but the central part with content change.

Is there a logical and correct way to do that with codeigniter??


Load content .. and mantain the same layout? - El Forum - 08-05-2007

[eluser]Kemik[/eluser]
I need the exact same thing. I haven't tried this yet but the Wiki and FAQ suggests:

http://ellislab.com/forums/viewthread/44916/


Load content .. and mantain the same layout? - El Forum - 08-05-2007

[eluser]esra[/eluser]
There are all sorts of threads mentioning different techniques for handling this topic on the forums. Here are some threads that might be of interest depending on what you're trying to do:

http://ellislab.com/forums/viewthread/51562/

http://ellislab.com/forums/viewthread/49910/

http://ellislab.com/forums/viewthread/54352/

http://ellislab.com/forums/viewthread/55574/

http://ellislab.com/forums/viewthread/56046/

http://ellislab.com/forums/viewthread/56798/

http://ellislab.com/forums/viewthread/57405/

http://ellislab.com/forums/viewthread/50174/

http://ellislab.com/forums/viewthread/47981/

http://ellislab.com/forums/viewthread/56456/

There are many more approaches, including solutions based on the use of template parsing engines such as YATS, TinyButStrong, bTemplate, Smarty, etc. Trying doing some searches on:

'view library'

'template engine'

'template parser'

'blocks'

'partials'

'view fragments'


Load content .. and mantain the same layout? - El Forum - 08-05-2007

[eluser]chobo[/eluser]
Check out this thread, it's all about views and view libraries.

Views techniques


Load content .. and mantain the same layout? - El Forum - 08-06-2007

[eluser]ariok[/eluser]
ohhh!! Thank you!


Load content .. and mantain the same layout? - El Forum - 08-08-2007

[eluser]sophistry[/eluser]
Yes, the FAQ has a nice set of links. I've added this thread to the FAQ because of esra's generous URL listing.