|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2019-01-10 (9 days ago) ||Not yet rated by the users||Total: 56 This week: 19||All time: 9,364 This week: 25|
This package provides a controller and widget to use with the YII2 framework to display a dashboard panel.
It provides a base class that can render panel widgets using a configuration file that defines a class that generates the contents of the widget.
The package also provides a base controller class that can define the dashboard panel behaviors configuration.
yii2 panel controller
Simply dashboard solution. Each dashboard panel define in controller identicaly as Yii page:
* in behaviors can control access - panel display only for users, who has access
* create action. Can use parameters also
* create view folder in same folder, where all other controller views
Installation by composer
$ composer require unyii2/yii2-panel "dev-master"
'name' => 'exportSettings',
'params' => [
'docId' => 777
'invoices' => [
'class' => 'd3modules\d3invoices\Module',
'panels' => [
'route' => 'd3accexport/invoice-panel/document-settings',
'params' => [
'docId' => 13
Panel controller with access control and view rendering
Standard view path: d3modules/d3accexport/views/invoice-panel/setting_grid.php
class InvoicePanelController extends Controller
public function behaviors()
'access' => [
'class' => AccessControl::className(),
'rules' => [
'allow' => true,
'actions' => [
'roles' => [
public function actionDocumentSettings()
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.