This module will allow you to add the JS and CSS for Twitter bootstrap from configuration.
in configs/module.config.php add single entries to the 'plugins' array. For example:
<?php return new Zend\Config\Config(
array(
'theme' => 'container',
'layout' => 'layouts/container.phtml',
'plugins' => array(
'dropdown','scrollspy','modal'
),
to enable the dropdown, scrollspy and modal plugins. To change the js location for plugins to not use the github CDN, change the relevant entry in pluginPaths.
To switch a layout, change the 'theme' and 'layout' entries in the configs/module.config.php. For example:
<?php return new Zend\Config\Config( array( 'theme' => 'container', 'layout' => 'layouts/container.phtml',Enables the Container layout, and;
<?php return new Zend\Config\Config( array( 'theme' => 'fluid', 'layout' => 'layouts/fluid.phtml',Enables the Fluid layout. Examples of the layouts:
- Hero: http://twitter.github.com/bootstrap/examples/hero.html
- Fluid: http://twitter.github.com/bootstrap/examples/fluid.html
- Container: http://twitter.github.com/bootstrap/examples/container-app.html
The Container layout is enabled by default.