Monday, 14 April 2014

Symfony Generator Configuration

Symfony Generator Configuration

Remove Filter , New , Edit ,Delete batch action Using generator.yml

    config:
      actions: ~
      fields:  
        ip:    { label: IP Address ,is_link: false}
        status: {type: Boolean}
      list:    
        max_per_page: 4
        sort: [status, desc]
        display: [name,ts,country,city,browser,status]
        fields:
          ts: { date_format:'dd-MMM-yyyy hh:mm:ss a' }
        batch_actions: {}
        object_actions: {}
        actions: { }
      filter:
        class: false
      form:   ~
      edit:   ~
      new:    ~

Block some field for admin only 
fields:

 ip:      { credentials: [admin] }


Date format

http://blog.rajatpandit.com/2009/01/28/datehelper-date_format-in-symfony/


http://www.symfonyreference.com/generator-yml

No comments:

Post a Comment