Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zacksleo/yii-plugin
yii plugin module
https://github.com/zacksleo/yii-plugin
hooks plugin-system yii yii-extension
Last synced: about 1 month 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T06:26:59.000Z (over 6 years ago)
- Last Synced: 2024-11-14T18:45:44.530Z (2 months ago)
- Topics: hooks, plugin-system, yii, yii-extension
- Language: PHP
- Size: 45.9 KB
- Stars: 1
- Watchers: 3
- 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)