[Solar-talk] Form question
Alex Stoneham
astoneham at yahoo.com
Sat Jan 26 21:42:28 CST 2008
Hi
I have a question for those who may know. I have spent all my brainjuice on it before comming here,
Anyway, I have been loading my models into forms, with good success, except the model I am trying to manipulate from a form now has a datetime field on it, and solar seems to be complaining (and rightly so I am sure) that no FormTimestamp for date type exists:
I don't even want the field to show up in the form, just get updated to now() on submit.
$cols = array( 'somevarcharfield');
$item = $this->_modelboundtoinstanceinsetup->fetchNew();
$this->publicformdata = $item->form();
then in the view:
echo $this->form()
->auto($this->publicformdata)
->hidden(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_CANCEL')))
->fetch();
Any Ideas?
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20080126/c7a7279e/attachment.html
More information about the Solar-talk
mailing list