Symfony bundle with simple blog / publishing features
-
Install via composer
composer require sonofliberty/news-bundle
-
Enable bundle
// app/AppKernel.php public function registerBundles() { return array( // ... new SonOfLiberty\NewsBundle\SonOfLibertyNewsBundle(), new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), // needed for translations // ... ); }
-
Configuration
# app/config/config.yml son_of_liberty_news: author: class: Acme\AcmeBundle\Entity\User # optional
-
Import routing
# app/config/routing.yml son_of_liberty_news: prefix: /news resource: '@SonOfLibertyNewsBundle/Resources/config/routing.yaml'