Zend Framework 2 Twitter Bootstrap module
PHP
Pull request Compare This branch is even with Bittarman:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
views
Module.php
README.md
autoload_classmap.php

README.md

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.