2017 © Pedro Peláez
 

library yii2-view-replacer

Yii2 View Replacer

image

mihaildev/yii2-view-replacer

Yii2 View Replacer

  • Wednesday, May 18, 2016
  • by mihaildev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Yii2 View Replacer

Установка

"mihaildev/yii2-view-replacer": "*"

Использование

Допустим вы хотите использовать сторонний модуль пользователей, но админ часть вас не устраивает! вы можете создать своё расширение которое просто добавит правильные замены шаблонов!, (*1)

class Bootstrap implements BootstrapInterface
{

    /**
     * Bootstrap method to be called during application bootstrap stage.
     * @param Application $app the application currently running
     */
    public function bootstrap($app)
    {
        ViewReplacer::replace('@app/some/path', '@app/to/path');
        ViewReplacer::replace([
            '@app/some/path' => '@app/to/path',
            '@app/some/path' => [
                '@app/to/path',
                '@app/to/path'
            ]
        ]);
    }
}

The Versions

18/05 2016

dev-master

9999999-dev https://github.com/MihailDev/yii2-view-replacer

Yii2 View Replacer

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii view replacer

18/05 2016

0.0.2

0.0.2.0 https://github.com/MihailDev/yii2-view-replacer

Yii2 View Replacer

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii view replacer

18/05 2016

0.0.1

0.0.1.0 https://github.com/MihailDev/yii2-view-replacer

Yii2 View Replacer

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii view replacer