Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # http://symfony.com/doc/current/setup.html
- $ symfony new my_project_name 2.8
- # run the local server
- $ php app/console server:run
- # http://symfony.com/doc/current/bundles/SensioGeneratorBundle/commands/generate_bundle.html
- $ php app/console generate:bundle
- # add these lines to your composer.json
- "repositories": [
- {
- "type": "vcs",
- "url": "https://github.com/asanchez75/easyrdf-bundle.git"
- }
- ],
- "require": {
- "conjecto/easyrdf-bundle": "dev-master as 0.1",
- "easyrdf/easyrdf": "^0.9.1"
- },
- # run this command to download conjecto/easyrdf-bundle from https://github.com/asanchez75/easyrdf-bundle.git
- $ composer update
- # Go to app/AppKernel/php and add these line to load EasyRdfBundle
- new Conjecto\Bundle\EasyRdfBundle\EasyRdfBundle(),
- # Install the bundle Assetic for Asset Management
- # http://symfony.com/doc/current/assetic/asset_management.html
- $ composer require symfony/assetic-bundle
- # Go to app/AppKernel/php and add these line to load AsseticBundle
- new Symfony\Bundle\AsseticBundle\AsseticBundle(),
- # add the following minimal configuration to enable Assetic support on your application:
- # app/config/config.yml
- assetic:
- debug: '%kernel.debug%'
- use_controller: '%kernel.debug%'
- filters:
- cssrewrite: ~
- # ...
- # generate assets
- $ php bin/console assetic:dump
- # Install the bundle BraincraftedBootstrapBundle for Boostrap theme
- # https://github.com/braincrafted/bootstrap-bundle
- # First you need to add braincrafted/bootstrap-bundle to composer.json:
- {
- "require": {
- "braincrafted/bootstrap-bundle": "dev-master"
- }
- }
- # You also have to add BraincraftedBootstrapBundle to your AppKernel.php:
- // app/AppKernel.php
- //...
- class AppKernel extends Kernel
- {
- //...
- public function registerBundles()
- {
- $bundles = array(
- ...
- new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle()
- );
- //...
- return $bundles;
- }
- //...
- }
- # Install the bundles knp-menu-bundle and knp-paginator-bundle
- # http://symfony.com/doc/current/bundles/KnpMenuBundle/index.html
- # https://github.com/KnpLabs/KnpPaginatorBundle
- $ composer require knplabs/knp-menu-bundle
- $ composer require knplabs/knp-paginator-bundle
- # add the following minimal configuration to enable braincrafted_bootstrap support on your application:
- # http://bootstrap.braincrafted.com/getting-started.html
- # app/config/config.yml
- braincrafted_bootstrap:
- output_dir:
- assets_dir: %kernel.root_dir%/../vendor/twbs/bootstrap
- jquery_path: %kernel.root_dir%/../vendor/jquery/jquery/jquery-1.10.2.js
- css_preprocessor: less # "less", "lessphp", "sass" or "none"
- fonts_dir: %kernel.root_dir%/../web/fonts
- auto_configure:
- assetic: false
- twig: true
- knp_menu: true
- knp_paginator: true
- customize:
- variables_file: ~
- bootstrap_output: %kernel.root_dir%/Resources/less/bootstrap.less
- bootstrap_template: BraincraftedBootstrapBundle:Bootstrap:bootstrap.less.twig
- # to add customized css and js files
- src/OntosidesBundle/Resources/public/css
- src/OntosidesBundle/Resources/public/js
- # run this command to create a folde inside web/bundles wich contains symlinks to customized css and js files
- $ php app/console assets:install web --symlink
- $ php app/console assetic:dump
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement