php - codeigniter passing the same information (like login status) to all the views -
i'm using dx_auth handle autentication in codeigniter app. want display in each page login status, i'm used develop view throught template inheritance.
i'm looking way access login information views without passing each time.
views shouldn't engage in "lookups". why not make template view can passed authentification information. then, build template controller, other controllers inherit, passes authentification info template view. way, write code once template view , template controller.
Comments
Post a Comment