CodeIgniter Forums

Full Version: How to make a session object always available to views?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]veggen[/eluser]
Is there a way for me to execute some custom login on every controller function? The idea is to make some session object always available to views without adding $data['key'] = $this->session->userdata('key'); to each function.