| View previous topic :: View next topic |
| Author |
Message |
Kopilman
Joined: 25 May 2006 Posts: 162
|
| How can i check the value of a session var from the Layout? Tried with $this->controller->Session, but it says Cannot use object of type SessionComponent as array |
| |
|
|
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| why do you need to access them from a view? |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| I need to display a logout and change password links, only if the admin is logged in |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| Kopilman, check and set a var in the controller |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| But, i already setted one on the session with the login function, why can't i use the one on the session, already? |
| |
|
|
Ikopar
Joined: 26 May 2006 Posts: 168
|
| Kopilman, $this->controller->Session->read() |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| Gladis, why do you need to access them from a view? |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| I need to display a logout and change password links, only if the admin is logged in |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| And a controller with var $scaffold; |
| |
|
|
Gladis
Joined: 24 May 2006 Posts: 108
|
| Is only one admin and no username required |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|