Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2. class Zend_Auth_Adapter_simpleAuth implements Zend_Auth_Adapter_Interface {
  3. public function __construct($username,$password);
  4. $this->username=$username;
  5. $this->password=$password;
  6. }
  7. public function authenticate(){
  8. if($username=="admin" && $password="q12we34r"){
  9. return New Zend_Auth_Result(Zend_Auth_Result::SUCCESS,$this->username,array());
  10. }else{
  11. return new Zend_Auth_Result(Zend_Auth_Result::FAILURE,null,array("Authentication Unsuccessful"));
  12. }
  13.  
  14. }
  15. }
  16. Error:
  17. Fatal error: Non-abstract method Zend_Auth_Adapter_simpleAuth::__construct() must contain body in C:\xampp\htdocs\ZFApp\library\Zend\Auth\Adapter\simpleAuth.php on line 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement