Blog

A week of symfony #21 (22->28 may 2006)

« Back to the Blog

Categories

Feeds

feed Posts feed

comments feed Comments feed

Be trained by symfony experts
Dec 10: Paris (1.1 - Francais)
Dec 10: Atlanta (1.1 - English)
Dec 17: Montreal (1.1 - Francais)
Jan 21: Paris (1.1 - Francais)
Feb 18: Paris (1.1 - Francais)
and more...

Archives

Creative Commons License This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 Unported License.

Development highlights

Before r1381, the name of the uploaded file in the admin generator was auto-generated by symfony. Now, you can call an object getter to customize the uploading directory and the filename. For example, if you want to name your uploaded file with the object id and put it into a directory named after the result of the getName() current object method, you can add this to your generator.yml configuration file:

  photo: { type: admin_input_upload_tag, upload_dir: photos/%%name%%, filename: %%id%% }

The sfFillInFormFilter filter now accepts more parameters (skip_fields, check_types and exclude_types):

The default values for these new parameters are:

  skip_fields:   []
  exclude_types: [hidden, password]
  check_types:   [text, checkbox, radio, password, hidden]

So, to fillin hidden fields, you can add the following snippet to your validate.yml configuration file:

fillin:
  activate: on
  param:
    exclude_types: [password]

Or, to fillin all fields:

fillin:
  activate: on
  param:
    exclude_types: [ ]

Book and documentation

Some people started to translate symfony documentation in french:

...and the first symfony project tutorial is also available in polish:

Some great new symfony snippets:

Some symfony powered websites

They talked about us

Comments comments feed

No comment yet.