learnzf2/theme

此包最新版本(dev-master)没有可用的许可证信息。

主题模块,允许您在ZF2应用程序中拥有不同的主题,并在它们之间切换。

dev-master 2014-09-19 20:10 UTC

This package is auto-updated.

Last update: 2024-09-14 01:02:28 UTC


README

这是一个为Zend Framework 2编写的“主题”模块。

它允许您为应用程序设置不同的主题,并在它们之间切换。

为了在模块配置文件中描述一个新主题,该主题提供新主题或扩展现有主题,您应该有如下定义

'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/'
            ),
        )
    )

更多详细信息请参阅http://learnzf2.com/themes-in-zend-framework-2/