2017 © Pedro Peláez
 

library yii-plugin

yii plugin module

image

zacksleo/yii-plugin

yii plugin module

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 107 % Grown

The README.md

yii-plugin

Yii-Plugin with Composer implementation, (*1)

Quick Start

Install by Composer

composer require zacksleo/yii-plugin, (*2)

Config

config in main.php, (*3)

    'modules' => [
        //'admin',
        'plugin' => [
            'class' => 'zacksleo\yii\plugin\PluginModule',
            'layout' => 'layout', // your layout
            'layoutPath' => dirname(__DIR__) . '/modules/admin/views/layouts/', // your layout path
            'pluginRoot' => 'webroot.plugins'
        ]
    ],

    'components'=>[
        //... other config
         'plugin' =>[
             'class' => 'zacksleo\yii\plugin\components\HookRender',
        ],  
    ]

Set Hooks in View

<?php Yii::app()->plugin->render('global_footer'); >

More

More docs see health901/Yii-Plugin, (*4)

The Versions

08/05 2018

dev-master

9999999-dev

yii plugin module

  Sources   Download

MIT

The Requires

 

08/05 2018

0.0.1

0.0.1.0

yii plugin module

  Sources   Download

MIT

The Requires