I have a bootstrap file with the following:

$site_sess=new Zend_Session_Namespace('my_session');
$site_sess->hello='what do you want?';

I want to have session variables available throughout controllers and model.
It seems like whenever I need to access them I need to do somethinkg like
the following in each controller function:

    public function homeAction(){
        $site_sess=new Zend_Session_Namespace('my_session');
         echo "<pre>\$site_sess:";
         print_r($site_sess->hello);
         echo "</pre>";
    }

Is there any way to just make $site_sess global to all models and
controllers via configuration? It seems like a lot of wasted typing.
-- 
View this message in context: 
http://www.nabble.com/making-Zend_Session-available-to-controller-model-functions-tp17460736p17460736.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to