0
我有基本的zend框架安裝。我創建新的數據庫錶款/表/ user.php的未找到Zend Framework Class'Table'錯誤
<?php
require_once 'Zend/Db/Table/Abstract.php';
class UserTable extends Zend_Db_Table_Abstract
{
protected $_name = 'user';
}
,後來在我的IndexController做表的電話:
public function indexAction()
{
$userTable = new UserTable();
}
,但我得到致命錯誤:致命錯誤:類「用戶表」未找到。我做錯了什麼?
您的幫助,將不勝感激。
該文件的名稱是什麼? –
@NandakumarV:User.php – Bounce
_我做錯了什麼?_你沒有從文檔開始。 http://framework.zend.com/manual/1.12/en/learning.quickstart.intro.html將是一個非常好的開始。 http://akrabat.com/zend-framework-tutorial/也非常好。 – RockyFord