Browse Source

[ZF-9118] Docs Zend_Auth

- Fix wrong examples (method inexistent, argument past wrong ...).

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23868 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 14 years ago
parent
commit
248bf8ee6a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      documentation/manual/en/tutorials/multiuser-authentication.xml

+ 3 - 3
documentation/manual/en/tutorials/multiuser-authentication.xml

@@ -128,9 +128,9 @@ class AuthController extends Zend_Controller_Action
     {
         $db = $this->_getParam('db');
 
-        $loginForm = new Default_Form_Auth_Login($_POST);
+        $loginForm = new Default_Form_Auth_Login();
 
-        if ($loginForm->isValid()) {
+        if ($loginForm->isValid($_POST)) {
 
             $adapter = new Zend_Auth_Adapter_DbTable(
                 $db,
@@ -148,7 +148,7 @@ class AuthController extends Zend_Controller_Action
 
             if ($result->isValid()) {
                 $this->_helper->FlashMessenger('Successful Login');
-                $this->redirect('/');
+                $this->_redirect('/');
                 return;
             }