README bootstrap 3.x
For bootstrap 2.x use branch v2.x, (*1)
Live Show
To see the bundle and its capabilities online just have a look on
MopaBootstrapBundle Live, (*2)
Introduction
MopaBootstrapSandboxBundle is a demo case howto use the MopaBootstrapBundle., (*3)
Installation
To use this in any of your projects (e.g. to make changes in MopaBootstrapBundle and see if it affects the Sandbox), (*4)
For detailed installation instructions also have a look into MopaBoostrapBundle Documentation, (*5)
just add this to your composer.json:, (*6)
``` json
{
"require": {
"mopa/bootstrap-sandbox-bundle": "dev-master"
}
}, (*7)
and add to your AppKernel:
```php
// ...
new Mopa\Bundle\BootstrapSandboxBundle\MopaBootstrapSandboxBundle(),
new Liip\ThemeBundle\LiipThemeBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
// ...
if you are using sf 2.0.x have a look into the README of the v2.0.x branch:, (*8)
https://github.com/phiamo/MopaBootstrapSandboxBundle/tree/v2.0.x, (*9)
run, (*10)
``` bash
composer.phar update # --dev if you added it to require-dev, (*11)
If you are not using the [https://github.com/phiamo/symfony-bootstrap-sandbox](symfony-bootstrap-sandbox)
You have to configure your project a little bit further.
For this to work its required to have less installed:
- [Less installation](https://github.com/phiamo/MopaBootstrapBundle/blob/master/Resources/doc/less-installation.md)
config.yml:
``` yaml
# import example configs
imports:
- { resource: @MopaBootstrapSandboxBundle/Resources/config/themes.yml }
- { resource: @MopaBootstrapSandboxBundle/Resources/config/examples/example_menu.yml }
# Assetic Configuration
assetic:
filters:
less:
node: /usr/bin/node
node_paths: [/opt/lessc/lib, /usr/lib/node_modules]
apply_to: "\.less$"
routing.yml:, (*12)
yaml
MopaBootstrapSandbox:
resource: "@MopaBootstrapSandboxBundle/Resources/config/routing.yml"
, (*13)
this imports the routes to be abled to access it in your browser via:, (*14)
http://yourproject/mopa/bootstrap, (*15)