• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having some issues with my CI powered app. (Showing dynamic sidebar on every single page)

#4
[eluser]sophistry[/eluser]
welcome loathsome...

you'd be better off putting some details in your post title next time. posts like these tend to get lost in the shuffle.

you should look into "partials", "modules", or "blocks" on the forums and the wiki. there are several ways of structuring getting/building the sidebar only once and then stuffing it in place.

the best way is what ever you are comfortable with; however, i'd suggest finding a caching library and simply caching the sidebar view (you need 3rd party code here because CI does not support view caches, only full page caches).

you could also hack up a kind of cache by using the sessions library (may i suggest using the db version rather than the default that stores data directly in the cookie). store your sidebar in the session data.

just implementing caching does not help with the actual streamlining of the code architecture but it will speed things up. organizing code blocks and streamlining their output can be done with Modular Extensions - a drop-in set up that allows you to nest controller output.

let us know how it goes.


Messages In This Thread
Having some issues with my CI powered app. (Showing dynamic sidebar on every single page) - by El Forum - 07-10-2008, 11:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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