What I generally do is create a Zend_Controller_Plugin that does the
Authentication before the dispatch process begins. I use Zend_Auth to
handle this. Once I have a valid identity, I assign it to the $request
object. This way there is an identity for each request, and it's
automagically available to every Controller/Action , as well as the
view if I want it there.

On 4/23/07, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote:
I could did it with sessions, but will be much better if I could print the
names using zend_auth.


2007/4/21, José de Menezes Soares Neto <[EMAIL PROTECTED] >:
> hi,
>
> i am trying to assign username for use it in templates, like header.tpl
and footer.tpl
> but, i don't know how to assign it only one time (in logon proccess) and
use it in all templates that i want.
>
> i tried to use session, but didnt work...
>
> does someone could help me?
>
> best regards,
>
> José de Menezes
>




--
Craig Slusher
[EMAIL PROTECTED]

Reply via email to