schmunk42/multi-theme
Composer 安装命令:
composer require schmunk42/multi-theme
包简介
Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.
README 文档
README
Features
Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.
Download
Get it from github and place it into your application.
or
Via composer: composer.phar require schmunk42/multi-theme
Usage
Configuration Example
'themeManager' => array(
'class' => 'vendor.schmunk42.multi-theme.EMultiThemeManager',
'rules' => array(
'^p3(.*)' => 'backend', // use backend theme for all routes starting with p3
'^user/default/index' => 'frontend', // use frontend theme for several routes of the user module
'^user/login/(.*)' => 'frontend',
'^user/profile/(.*)' => 'frontend',
'^user/registration/(.*)' => 'frontend',
'^user/recovery/(.*)' => 'frontend',
'^user/activation/(.*)' => 'frontend',
'^user/(.*)' => 'backend', // use backend theme for user module
'^rights/(.*)' => 'backend', // use backend theme for rights module
)
),
Note: The first matching rule wins.
Resources
- Fork on github
- View at Yii Extensions
- Phundament Composer Package
统计信息
- 总下载量: 7.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-04-04