How to declear a table name in zend farmework
- zendnwar
- June 1, 2012
- Zend basic
- 1 Comment
class Model_DbTable_User extends Zend_Db_Table_Abstract
{
protected $_name;// = ‘users ‘;
public function init()
{
$this->_name = ‘users’;
}
}
………………………………………………………………………………………………………….
Model_DbTable_User => model/DbTable/user.php
protected $_name => Initialize to variable
$this->_name = ‘users’ => Initialize to users Table.