求助~~关于ZF链接MYSQL的一个问题~~·

求助~~关于ZF链接MYSQL的一个问题~~·

index.php

<?php
set_include_path("." .PATH_SEPARATOR . "Library/".PATH_SEPARATOR .get_include_path());
require_once("Zend/Loader.php");
require_once 'Zend/Controller/Front.php';
require_once 'config.php';

Zend_Loader::loadClass('Zend_Registry');
Zend_Loader::loadClass('Zend_Db');
Zend_Loader::loadClass('Zend_Db_Table');



$frontController = Zend_Controller_Front::getInstance();
$frontController->setControllerDirectory('app/controllers');
$frontController->throwExceptions(true);
$frontController->dispatch();




webconifg.php
<?php

Zend_Loader::loadClass('Zend_Db_Table');
class webconfig extends Zend_Db_Table {
        protected $_primary = 'id';
}
?>


IndexController.php这么写的

<?php
require_once 'app/models/webconfig.php';

class IndexController extends Zend_Controller_Action {
      
    var $_webconfig;
var $row;
        function init()
                {
        $this->initView();
        }
        public function indexAction()
        {
                    $this->_webconfig =& Zend_Loader::loadClass('webconfig');
                     // $_webconfig = new webconfig();
                $this->view->title = "我的主页";
                $row = $this->_webconfig ->find(1);
                $this->render();
        }



结果说
Fatal error: Call to a member function find() on a non-object in D:\fleaphp-apmxe\htdocs\zend\app\controllers\IndexController.php on line 17

没有find()函数??????

config.php这么写的

<?php
// 建立一个 adapter
require_once 'Zend/Db.php';
$params = array (    'host'     => 'localhost',
    'username' => 'root',  
      'password' => '',   
       'dbname'   => 'blog');
       $db = Zend_Db::factory('PDO_MYSQL', $params);
       // 为所有的Zend_Db_Table对象设定默认的adapter
       require_once 'Zend/Db/Table.php';
       Zend_Db_Table::setDefaultAdapter($db);
      
       ?>