Re: DataObject [date_updated] fields
| From: | Alexander Petri | Date: | Fri, 29 Oct 2004 14:56:05 +0000 |
| Subject: | Re: DataObject [date_updated] fields | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15224@lists.php.net to get a copy of this message | ||
hmm this does not work:
here is my class
class userForm extends DB_DataObject_FormBuilder_QuickForm {
function &getForm($action=false, $target='_self',$formName='CustomerForm',
$method='post'){
if (!$action) {
$action = $_SERVER['REQUEST_URI'];
}
$form =& new CustomSmarty($formName, $method, $action,$target);
return $form;
}
function update(){
$this->date_updated=date("Y-m-d H:i:s");
parent::update;
}
}