przewiń do treści

Zend Framework od podstaw

Włodzimierz Gajda

public function changepasswordformAction()
{
    $auth = Zend_Auth::getInstance();
    if (!$auth->hasIdentity()) {
        return $this->_helper->redirector(
            'index',
            'auth',
            'default'
        );
    }
    $this->view->identity = $auth->getIdentity();
    $this->view->form = new Application_Form_Changepassword();
}

Listing 37.13. Metoda akcji auth/changepasswordform

Rozdział 37. Rejestracja użytkowników

listing-37-13.txt