Git Product home page Git Product logo

sf2gengeneratorbundle's Introduction

Introduction

Sf2genGeneratorBundle contains web interface for SensioGeneratorBundle. The interface is same as WebConfiguratorBundle.

Have a look!

The main menu: Screenshot

Generate your bundle: Screenshot

Generate an entity; the bundle name is autocompleted based on activated bundles in the your application: Screenshot

Generate a form; the bundle name and the entity name are autocompleted based on activated bundles in the your application and available entities: Screenshot

Installation

  1. Add this bundle to your vendor/ dir:

    $ git submodule add git://github.com/sensio/SensioGeneratorBundle.git vendor/bundles/Sensio/Bundle/GeneratorBundle $ git submodule add git://github.com/RapotOR/Sf2genGeneratorBundle.git vendor/bundles/Sf2gen/Bundle/GeneratorBundle

  2. Add the Sf2gen and Sensio namespaces to your autoloader:

    // app/autoload.php $loader->registerNamespaces(array( 'Sensio' => DIR.'/../vendor/bundles', 'Sf2gen' => DIR.'/../vendor/bundles', // other namespaces ));

  3. Add this bundle to your application's kernel, in the debug section:

    // app/ApplicationKernel.php public function registerBundles() { $bundles = array( // all bundles
    );

       if (in_array($this->getEnvironment(), array('dev', 'test'))) {
           // previous bundles like WebProfilerBundle
           $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
           $bundles[] = new Sf2gen\Bundle\GeneratorBundle\Sf2genGeneratorBundle();
       }
    
       return $bundles;
    

    }

  4. Add the following ressource to your routing_dev.yml:

    // app/config/routing_dev.php _generator: resource: "@Sf2genGeneratorBundle/Resources/config/routing.yml" prefix: /_generator

  5. You have to disable the firewall if you use the security component:

    app/config/config.yml

    security: firewalls: generator: pattern: /_generator/.* security: false

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.