I just want to do this simple task with Zend Framework:
<input type="hidden" name="modification_date" value="<?php echo new Zend_Db_Expr('NOW()');?>" />
As you can see I'm trying to instantiate Zend_Db_Expr to be able to insert a date in an input with NOW()
in a View, however this is not working, because what I've got is this value="NOW"
instead of something like this value="2012-10-04 12:14:56"
Seems quite simple. I had this working before but U had to uninstall and reinstall MySQL for another reason and now it doesn't work.
I've also tried new Zend_Db_Expr('SELECT NOW();')
because in my MySQL if I execute NOW this way I got the date.