saquery.com
a web developer' s kung fu…
The Symfony2 bundle generator
Categories: Nice to know

Well, Symfony2 project provides a good source code generator.
They call this “The Symfony2 bundle generator”. The are dozens of bundles available at http://bundles.knplabs.org/
For example we can execute the Symfony2 bundle generator tool from windows vista to create a new Symfony2 bundle / project from scratch.

MS DOS COMMAND (cmd.exe):
c:\xampp\php\php.exe c:\xampp\htdocs\Symfony\app\console generate:bundle --namespace=sa/SampleBrowserShop --format=yml

You can now start using the generated code!

Webroot
http://localhost/Symfony/web/app_dev.php/sa/Example

Vote this page

1 Comment to “The Symfony2 bundle generator”

  1. pete says:

    OK. This is really is a good starting point for Symfony2 beginners .

    Thanks for this information,
    Pete

Leave a Reply