2017 © Pedro Peláez
 

library multi-theme

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

image

schmunk42/multi-theme

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

  • Wednesday, July 23, 2014
  • by schmunk
  • Repository
  • 2 Watchers
  • 6 Stars
  • 7,383 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

multi-theme

Features

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes., (*1)

Download

Get it from github and place it into your application., (*2)

or, (*3)

Via composer: composer.phar require schmunk42/multi-theme, (*4)

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., (*5)

Resources

The Versions

23/07 2014

dev-master

9999999-dev

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

  Sources   Download

BSD-3-Clause

The Requires

 

route yii theme manager phundament

23/07 2014

0.2.1

0.2.1.0

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

  Sources   Download

BSD-3-Clause

The Requires

 

route yii theme manager phundament

20/07 2014

0.2.0

0.2.0.0

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

  Sources   Download

BSD-3-Clause

The Requires

 

route yii theme manager phundament

05/04 2013

0.1.1

0.1.1.0

Yii Framework Theme-Manager class, switch themes by regular expressions on controller routes.

  Sources   Download

BSD-3-Clause

The Requires

 

route yii theme manager phundament

04/04 2013

0.1.0

0.1.0.0

Yii Framework ThemeManager class, switch themes by regular expressions for routes

  Sources   Download

BSD-3-Clause

The Requires