Welcome Guest, Not a member yet? Register   Sign In
How to pass a value from a Model to a controller that did not call that Model
#1

[eluser]alvaroeesti[/eluser]

Hello,



After checking at the Model that username and password are correct I want to go to the Administration panel.

First, I dont know if I am "going the right way" because I am using a

Code:
header("Location: http://localhost/realestate/etc/");


I mean, it takes me alright, but I dont know if that is the way to do it, because

the second issue is that at the Admin Panel I need to have that thing of Welcome Username and the logout link, and it is that Username that I am sending from the Model.

I imagined I would do the session_start () at the Administration panel and then I would do $_SESSION('username') = $username;

any idea what the way to send the $username from the Model so that I can pick it up at the Admin panel?


thank you



Messages In This Thread
How to pass a value from a Model to a controller that did not call that Model - by El Forum - 11-23-2012, 07:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB