they are if you call them "created" and "modified" see the cookbook for details
On 23 Apr., 22:09, Thomas Allen <[email protected]> wrote: > In the scaffold create and edit views, I am presented with datetime > inputs for both "Created at" and "Updated at." Is this an indication > that I have done something wrong? I thought that the values for these > fields were handled internally. > > Here is the bare-bones table: > > create table templates ( > id int(11) unsigned not null auto_increment, > created_at datetime not null, > updated_at datetime not null, > > name varchar(255) not null, > > primary key (id) > ); > > Here is the model: > > class Template extends AppModel { > var $name = 'Template'; > var $displayField = 'name'; > var $validate = array( > 'id' => array( > 'blank' => array( > 'rule' => array('blank'), > 'on' => 'create' > ) > ), > > 'name' => array( > 'notempty' => array( > 'rule' => array('notempty') > ) > ) > ); > > } > > And finally, the controller: > > class TemplatesController extends AppController { > var $name = 'Templates'; > var $scaffold; > > } > > Thomas > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
