stagnantice / yii2-widget-controller
Yii2 Widget Controller
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/stagnantice/yii2-widget-controller
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-09-21 22:20:12 UTC
README
Yii2 widget action provider controller
If you want separate action for your widgets without controllers, wellcome!
Usage:
-
Extend your widgets from "Widget" class.
-
Add actions methods and use $widget->url() and $widget->redirect() methods in view and widget class instead yii/helpers/Url.
-
Create widget view file "template.php", js and css files "script.js" and "style.css" in widget or template folder.