2017 © Pedro Peláez
 

yii2-extension yii2-smartyviewer

The Smarty Viewer integration for the Yii framework 2+

image

fenghuilee/yii2-smartyviewer

The Smarty Viewer integration for the Yii framework 2+

  • Thursday, May 14, 2015
  • by fenghuilee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Smarty Extension for Yii 2

This extension provides a ViewRender that would allow you to use Smarty view template engine., (*1)

To use this extension, simply add the following code in your application configuration and web controller:, (*2)

xxx/config/main.php
return [
    //....
    'components' => [
        'smarty' => [
            'class' => 'yii\smartyviewer\SmartyViewer',
            //'themeName' => 'basic',
            //'cachePath' => '@runtime/Smarty/cache',
            //'options' => [
            //    'left_delimiter' => '<{',
            //    'right_delimiter' => '}>',
            //],
        ],
    ],
];

XxxxController.php
    public function init()
    {
        Yii::$app->smarty->init();
        parent::init();
        //other code
    }

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist fenghuilee/yii2-smartyviewer "*"

or add, (*5)

"fenghuilee/yii2-smartyviewer": "*"

to the require section of your composer.json., (*6)

Note that the smarty composer package is distributed using subversion so you may need to install subversion., (*7)

The Versions

14/05 2015

dev-master

9999999-dev

The Smarty Viewer integration for the Yii framework 2+

  Sources   Download

MIT

The Requires

 

yii2 smarty renderer

14/05 2015

1.0.3

1.0.3.0

The Smarty Viewer integration for the Yii framework 2+

  Sources   Download

MIT

The Requires

 

yii2 smarty renderer

14/05 2015

1.0.2

1.0.2.0

The Smarty Viewer integration for the Yii framework 2+

  Sources   Download

MIT

The Requires

 

yii2 smarty renderer

15/01 2015

1.0.1

1.0.1.0

The Smarty Viewer integration for the Yii framework 2+

  Sources   Download

MIT

The Requires

 

yii2 smarty renderer

14/01 2015

1.0.0

1.0.0.0

The Smarty Viewer integration for the Yii framework 2+

  Sources   Download

MIT

The Requires

 

yii2 smarty renderer