zacksleo / yii-plugin
yii plugin module
Installs: 1 071
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- yiisoft/yii: ^1.1
This package is auto-updated.
Last update: 2024-11-08 07:29:24 UTC
README
Yii-Plugin with Composer implementation
Quick Start
Install by Composer
composer require zacksleo/yii-plugin
Config
config in main.php
'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