• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load content .. and mantain the same layout?

#1
[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??

#2
[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/

#3
[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'

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

Views techniques

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

#6
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.