The generator.yml
power for your
Symfony2
backends

Table of contents
    Fork me on GitHub

    Overwrite the default success / error messages

    For the actions new, edit, delete, you can overwrite the default notices with your own:

    edit:
      params:
        messages:
          success: "Your movie has been updated"
          error: "Oops, an error occurred, and this was not saved."

    Example: Suppose you wish to provide feedback to your user with ApiKey data stored in an autogenerated form field, then you can use: '{$Model.getApiKey}' where $Model is your model short name object and getApiKey is the getter for the data.
    Now include this in the success message.

    edit:
      params:
        messages:
          success: "You've just registered a new application, thanks. Your consumer key is <u>{$Model->getApiKey()}</u>."

    Warning
    Don't forget the curly brackets {$Model->getWhatever()}.