예제 #1
0
 public function formAction()
 {
     $table = new Zend_Db_Table();
     $table->setOptions(array('name' => 'test'));
     $table->setMetadataCacheInClass(true);
     $data = array('listorder' => '11');
     $table->insert($data);
     Zend_Debug::dump($table);
     die;
 }
예제 #2
0
파일: Data.php 프로젝트: laiello/xinhuxi
 protected function _init()
 {
     $table = new Zend_Db_Table();
     $table->setOptions(array('name' => $this->_model->key));
     $this->_table = $table;
 }