Skip to content
Module that allows you to have different themes in your ZF2 application.
PHP
Branch: master
Clone or download
Slavey Karadzhov
Slavey Karadzhov Initial version.
Latest commit 9b3d708 Sep 19, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src/Theme Initial version. Sep 19, 2014
tests Initial version. Sep 19, 2014
view/theme/index Initial version. Sep 19, 2014
LICENSE.txt Initial version. Sep 19, 2014
Module.php Initial version. Sep 19, 2014
README.md Initial version. Sep 19, 2014
autoload_classmap.php Initial version. Sep 19, 2014
autoload_function.php Initial version. Sep 19, 2014
autoload_register.php Initial version. Sep 19, 2014
composer.json Initial version. Sep 19, 2014

README.md

This is a "Theme" module for Zend Framework 2.

It allows you to have different themes for your application and switch between them.

In order to describe a new theme in the module config file that provides the new theme, or extends and existing one, you should have a definition like this one:

'themes' => array (
        '<theme-name>' => array (
            'description' => '<Your description>',
            'screenshot' => 'Optional link pointing to a screenshot of the theme',
            'template_map'=> array (
            	'key' => 'path/to/template.phtml',
            	// ...
            ),
            'template_path_stack' => array(
            	'/path/to/theme-templates/'
            ),
        )
    )

For more details see http://learnzf2.com/themes-in-zend-framework-2/

You can’t perform that action at this time.