Admin generator documentation added

The generation chapter of the symfony book has just been updated to reflect the latest additions of symfony 0.6 in one crucial feature: The admin generator.

It describes in detail the differences between a scaffolding and an administration, why you should initiate instead of generate, and all the settings that you can change to control the administration functionnalities.

We made a few changes to the generator.yml syntax, to make it easier to use. The example given in the What's new in 0.6 has to be slightly modified to work with the latest symfony beta release (higher than 0.7.872):

      class:              sfPropelAdminGenerator
        model_class:      Question
        theme:            default
          user:             { name: Author }
          user_id:          { name: Question author }
          body:             { name: Question }
          interested_users: { name: Interested users }
          created_at:       { name: Creation date }
          title:            question list
          layout:           stacked
          display:          [=title, user, interested_users, created_at]
          params:           %%title%% by %%user%% on %%created_at%%
            _edit:          -
            _delete:        -
            export:         { name: export, action: ListExport }
          max_per_page:     5
          filters:          [title, created_at, interested_users, user_id]
            title:          { type: input_tag, params: size=10 }
            created_at:     { type: input_date_tag, params: rich=on }
            export:         { name: export, action: ListExport }
            _create:        -

The first project tutorial has also been updated to reflect these changes.

Now that you can create your own back-end applications in minutes, feel free to submit your configs in the wiki, together with the printscreen showing what it does.

And for those who prefer to watch instead of reading, a tutorial dedicated to the generator will soon be published, so stay tuned...

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.


Excellent! i really like the admin generator and love the configuration of it. I couldnt work out how to get the rich date editors to work with time as well as date though. how do i let users edit the time part of the timestamp in the interface?

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.