Symfony, Admin generator, edit page, date field, default value

September 8, 2008

I had some trouble trying to set the default value for the ‘publish_date’ field in the backend generated admin section for my Blog app. I stumbled upon this, which explains about overwriting a function in the action class generated in the cache. There you can set any value for the object you’re editing.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: