https://github.com/zacksleo/yii-plugin
yii plugin module
https://github.com/zacksleo/yii-plugin
hooks plugin-system yii yii-extension
Last synced: 11 months ago
JSON representation
yii plugin module
- Host: GitHub
- URL: https://github.com/zacksleo/yii-plugin
- Owner: zacksleo
- License: mit
- Created: 2018-05-07T14:47:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T06:26:59.000Z (almost 8 years ago)
- Last Synced: 2025-03-14T04:34:02.939Z (11 months ago)
- Topics: hooks, plugin-system, yii, yii-extension
- Language: PHP
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii-plugin
[Yii-Plugin](https://github.com/health901/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
```
plugin->render('global_footer'); >
```
### More
More docs see [health901/Yii-Plugin](https://github.com/health901/Yii-Plugin)