Skip to content

Bittarman/TwitterBootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bootstrap module for Zend Framework 2

This module will allow you to add the JS and CSS for Twitter bootstrap from configuration.

Enabling plugins

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.

Layouts

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:

The Container layout is enabled by default.

About

Zend Framework 2 Twitter Bootstrap module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages