Welcome Guest, Not a member yet? Register   Sign In
Including header that uses a controller
#1

[eluser]a_bains[/eluser]
Hello,

It is my first time using frameworks for PHP. In my header I have a login. When a user logs in, I would like the text boxes to disappear and then show: Welcome, <NAME>.

I tried using a controller whichs works perfectly but now I want to include the header onto every page. I know I can load the view.. but it needs the controller.. or is there a better way to do it. I hav ebuilt a login class but the controller is still needed to process whether the user is logged in and display a certain message. Should I just put this processing in the view..?




Theme © iAndrew 2016 - Forum software by © MyBB