[Solar-talk] Form question

Alex Stoneham astoneham at yahoo.com
Sat Jan 26 21:48:00 CST 2008


Ok, I think I can just make the form like normal., then just set/manipulate it after its made.


----- Original Message ----
From: Alex Stoneham <astoneham at yahoo.com>
To: solar-talk at lists.solarphp.com
Sent: Saturday, January 26, 2008 7:42:28 PM
Subject: [Solar-talk] Form question


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?




      Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20080126/8863d1c9/attachment.html


More information about the Solar-talk mailing list