Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to add new bundle in Symfony2

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 394
    Comment on it

    Hello Friends,

    If you are looking to create a new module in Symfony2 and want to integrate this with new bundle. Please follow the below steps:

     

    1) Create your bundle folder under your_project_name/src/App/your_bundle_name

    like my bundle name is "CamTaxsettingBundle" so the bundle path will be ::

    /var/www/html/your_project_name/src/App/CamTaxsettingBundle

     

    2) Now open your routing.yml file with following path

    your_project_name/app/config.yml

    and add your bundle entry like below:

    app_cam_taxsetting_admin:
        resource: "@AppCamTaxsettingBundle/Resources/config/routing.admin.yml"

     

    3) Now open naked-admin/app/AppKernal.php file and add the entry as below:

    public function registerBundles()
        {
            $bundles = array(new App\CamTaxsettingBundle\AppCamTaxsettingBundle());
    
        }
    
    * if registerBundles() already exist then just add the entry under $bundles array()

     

    Now define you functionality in your bundle...

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: