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)