If you're accessing it as $sess_city in your view (default.thtml),
then chances are somewhere in your controller you're setting it with
$this->set('sess_city', 'some-session-data'). The method set() queues
up the named variable for use in the view, but I don't think you can
access it that variable anywhere but in the view (or rather, anything
that gets rendered once execution has passed from the controller to
the rendered view & its elements).

So, whatever source it came from in the controller when you set() it
is how you should access it in the controller - and its probably
straight out of your session data, something along the lines of: $this-
>Session->read('some-session-data').


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to