Welcome Guest, Not a member yet? Register   Sign In
Load new Controller from within Controller / View?
#1

[eluser]Unknown[/eluser]
I'm using a template to display the header, body, and footer. These are all views. Within the header there is the User_info view for displaying the Sign In / Sign Up or if logged in already the customary logout / control panel display. At present within the User_info PHP view i have IF statements and checks for cookie.

TO me the User_info display should be a controller which then decides what view to show. From within my home page controller or template view is it possible (and proper) to load the User_info controller class? Would i use $this->load->library('controllers/User_info')?


Messages In This Thread
Load new Controller from within Controller / View? - by El Forum - 06-12-2010, 03:23 PM
Load new Controller from within Controller / View? - by El Forum - 06-12-2010, 05:10 PM
Load new Controller from within Controller / View? - by El Forum - 06-12-2010, 05:13 PM
Load new Controller from within Controller / View? - by El Forum - 06-12-2010, 08:14 PM
Load new Controller from within Controller / View? - by El Forum - 06-13-2010, 08:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB