no response ? :s
On 12/29/06, Yann Nave <[EMAIL PROTECTED]> wrote:
Hello everybody,
Using ZF 0.6, I'm programming a little CMS.
For administration of pages I create Zend_Db_Table object and fetchNew
record like this :
/* Prefill the form */
$pages= new Page();
$page = $pages->fetchNew();
$page->pageDate = date('Y-m-d H:i:s');
$page->pageDateGmt = gmdate('Y-m-d H:i:s');
$page->menuOrder = 0;
I give the object $page to the view
$view->page = $page;
And echo the object property
<input value="<?php echo $this->page->pageDateGmt;?>" etc.... />
I think it will be great to have the possibility to give errors (
resulting of data validaton when submiting ), to the row object...
Why not have a function like $row_object->_e(pageDateGmt) wich echo
the error ( if there is after data control ).
Sorry for my english, I'm french.
Best regards,
--
Yannux
http://blog.onbebop.net
--
Yannux
http://blog.onbebop.net