0
/var/www/page/page/video.php:CRUD,之後點擊保存在添加或編輯
<?php
class page_video extends Page {
function init(){`enter code here`
parent::init();
$form=$this->add('Form');
$d=$this->add('Tabs');
$d->addTab('klienci_w')->add('CRUD')->setModel('KlienciW');
if($form->isSubmitted()){
$form->js()->execute();
}
}
}
/var/www/page/lib/Model/KlienciW.php
<?php
class Model_KlienciW extends Model_Table {
public $entity_code='klienci_w';
public $debug=true;
function init(){
parent::init();
$this->addField('adresid');
$this->addField('adresn');
$this->addField('adresu');
$this->addField('adresk');
$this->addField('adresp');
$this->addField('aosoba');
$this->addField('aosobat');
$this->addField('odbiorcaid');
$this->addField('data')->type('date');
$this->addField('datau')->type('date');
}
}
我有Chrome的形式回答(在Firefox中是一樣的):在MySQL這個數據被添加到數據庫,但形式仍然是主屏幕上的網頁瀏覽器,在郵政
insert into `klienci_w` (`adresid`,`adresn`,`adresu`,`adresk`,`adresp`,`aosoba`,`aosobat`,`odbiorcaid`,`data`,`datau`) values ("sdfsd","fsdf","sdfsd","fsdf","sdfsd","fsdfsd","fsdf","sdf","2012-05-16","2012-05-18") [:a_10, :a_9, :a_8, :a_7, :a_6, :a_5, :a_4, :a_3, :a_2, :a]
select `id`,`adresid`,`adresn`,`adresu`,`adresk`,`adresp`,`aosoba`,`aosobat`,`odbiorcaid`,`data`,`datau` from `klienci_w` where `id` = "6" limit 0, 1 [:a]
$('#Frontend_video_tabs_view_htmlelement_crud').trigger('reload');$('#Frontend_video_tabs_view_htmlelement_crud_form').univ().closeDialog()
greSQL沒有任何事情發生,但表單仍然在Web瀏覽器的主屏幕上。
版本4.2和4.2.1中的ATK4。
我在做什麼錯?