Matthew,

Thank you for sharing that with me, I have been able to use some of
your design to good effect.  There is quite a bit of fancy footwork in
there that clearly demonstrates an intimate understanding of the Zend
Framework application life cycle.  If I had spent as much time with it
as im sure you have, I might understand what you are doing a little
bit better.

Unfortunately, after comparing the logout functionality between my app
and the one you mentioned, I do not see any differences at all.  What
I did notice though, was an awful lot of my instantiating a
configuration object out of the Zend_Registry.  In fact I am doing it
too much and in too many places.  What I need to do is understand how
I can get one copy of the config object (which is $config = new
Zend_Config_Ini('../application/configuration.ini', null, false);) and
set it so that all view level scripts can access it, such as my
navigation includes in the layout level and the individual controller
view scripts such as index.phtml and the like.  Im currently pulling
out this object in each script where I need it, but I would feel more
secure about the code if I could share one common object.

Anyway, Im convinced it isnt the way im calling the logout directives,
as they look identical to yours, it must be something in the way i am
doing the structure, or some kind of logic problem.

Thanks for your help.

On Tue, Oct 21, 2008 at 12:33 PM, Matthew Weier O'Phinney
<[EMAIL PROTECTED]> wrote:
> -- Matthew Ishii <[EMAIL PROTECTED]> wrote
> (on Tuesday, 21 October 2008, 11:58 AM -0700):
>> I am having major issues here, I had thought that separating the login
>> processing and the logout functions from the index page where the
>> actual login form is rendered would solve the issues im having but I
>> was mistaken.  The issue still remains, I select logout and the
>> browser hourglasses and times out.
>>
>> Is there some internal MVC zend log that I can take a look at?
>
> No -- you'd have to set that up yourself.
>
> Take a look at how authentication is done in the bugapp example app I
> did for the Dutch PHP Conference:
>
>    http://github.com/weierophinney/bugapp
>
> It does login and logout, and it's done very simply and
> straight-forward.
>
>> I have
>> taken a look at the apache logs but nothing happens.  Its as if the
>> request is stuck in the framework.  Im not sure it will help, but this
>> is my logout function and my index function inside the index
>> controller:
>>
>> class IndexController extends Zend_Controller_Action
>> {
>>
>>
>>    public function indexAction()
>>    {
>>      $config = Zend_Registry::get('config');
>>
>>      $this->view->title   = $config->english->login->title;
>>      $this->view->baseurl = $config->production->hosturl;
>>      $this->view->shead   = $config->english->login->subheader;
>>      $this->view->form    = $this->getLoginForm();
>>
>>      $this->_helper->layout->disableLayout();
>>    }
>>
>>
>> And logout function:
>>
>>
>>    public function logoutAction()
>>    {
>>      Zend_Auth::getInstance()->clearIdentity();
>>      return $this->_helper->redirector('index');
>>    }
>>
>
> --
> Matthew Weier O'Phinney
> Software Architect       | [EMAIL PROTECTED]
> Zend Framework           | http://framework.zend.com/
>

Reply via email to