View Single Post
  #1 (permalink)  
Old 06-20-2008, 08:21 PM
trickyidiot trickyidiot is offline
Junior Member
 
Join Date: Jun 2008
Posts: 4
Unhappy ZF n00b - lost in session namespaces

Where do I place the namespace initialization to make a specific namespace available to all aspects of a project (layout files, controllers and views)?

if I place the following code in the bootstrap file, I can access it there, but not anywhere else:

$authNamespace = new Zend_Session_Namespace('authNamespace');
echo $authNamespace->fName;
echo $authNamespace->lName;

I tried setting it in the init() section of the controller I was in, using:
$this->authNamespace = new Zend_Session_Namespace('authNamespace');

What am I missing here?

Before anyone harps on me for not using Zend_Auth, the user details are pulled from a separate database after the user is logged in, as login credentials are coming from an LDAP server and user details are coming from a separate MS SQL server.

Thanks in advance for any insight

-=Tricky=-
Reply With Quote