Image

Imagenotrub225 wrote in Imagewebdev

Object Oriented Programming error

Hello everyone,

I am using the Zend Framework for this site, but anyone who is familier with PHP should be able to help me. I am having an error message whenever I try to use the Zend_Auth component. I seem to be initializing something incorrectly.

Go this page: http://www.grandillusion.tv/index/auth/login

username: bob
password: bob

I get the error message:
Fatal error: Argument 1 passed to Zend_Auth_Adapter_DbTable::__construct() must be an object of class Zend_Db_Adapter_Abstract,
called in /home/content/g/r/a/grandillusion/html/application/controllers/AuthController.php on line 31 and
defined in /home/content/g/r/a/grandillusion/html/library/Zend/Auth/Adapter/DbTable.php on line 112


I can provide the source code for AuthController.php if you need to look at it.