PHP code example of chaplean / cms-bundle

1. Go to this page and download the library: Download chaplean/cms-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chaplean / cms-bundle example snippets



    //...
    public function registerBundles()
    {
        return array (
            //...
            new Chaplean\Bundle\CmsBundle\ChapleanCmsBundle(),
        );
    }



// Add this in migration

/** @var Kernel $kernel */
$kernel = $this->container->get('kernel');
$application = new Application($kernel);
$application->setAutoExit(false);

$options = array('command' => 'doctrine:fixtures:load', '--fixtures' => 'vendor/chaplean/cms-bundle/Chaplean/Bundle/CmsBundle/DataFixtures/ORM', '--append' => true);
$application->run(new ArrayInput($options));

shell
php bin/console bazinga:js-translation:dump