Admin panel - what is the best way to display "static" data in the layout?
Posted
by rkj
on Stack Overflow
See other posts from Stack Overflow
or by rkj
Published on 2010-05-26T19:33:34Z
Indexed on
2010/05/26
19:51 UTC
Read the original article
Hit count: 178
I'm about to write a admin panel for my CMS written in CodeIgniter. There will be some user information visible at all time - both in the layout's header section and the sidebar. I'm used to do it in a way that I personally hope and think could be done a lot easier, since I'm tired of sending the same parametres to the view over and over again, when it's dynamic data that needs to be displayed on every page anyways (such as unread messages, username, name, status, etc).
I'll need controllers and models, I know that, but do I have to pass, just for an example, the user's username, unread messages etc. every time I need to load a view? Should I do some kind of library for this?
Now my question is: How would I do it when it comes to best practice and for making it easy to maintain in the future?
I hope my question is understandable :)
© Stack Overflow or respective owner