Download the PHP package unyii2/yii2-panel without Composer
On this page you can find all versions of the php package unyii2/yii2-panel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download unyii2/yii2-panel
More information about unyii2/yii2-panel
Files in unyii2/yii2-panel
Package yii2-panel
Short Description yii2 panel module
License BSD-4-Clause
Homepage https://github.com/unyii2/yii2-panel.git
Informations about the package yii2-panel
yii2 panel controller
Yii2Panel was designed to make boards that display different panels from different modules/extensions with access rights control.
Meeting better as expected, as the Yii2Panel can be used for displaying panel from any other module/extension with access control.
Another benefit is that the panels to be displayed are assigned to a module configuration that allows different panels to be used in the module for different projects.
For procesing submited data from PanelWidgwet van use PanleLogic
Realisation
Simply dashboard solution. Each dashboard panel define as panel controller action identically as Yii page:
- panel controller in behaviors can control access - panel display only for users, who has access;
- panel controller controller action for creating HTML or response;
- create view folder in same folder, where all module controller views;
- for displaying add PanelWidget like anchor in view file;
- in module config for PanelWidget set one or more panels as Yii routes with parameters to panel controller;
Sequence
- PanelWidget get panel list from module configuration
- PanelWidget call panel controller action with parameters
- Panel controller validate access. If no access, return empty string
- panel controller action create response HTML
- PanelWidget output response HTML
Installation by composer
Widget
Controller action
For processing submited data form panel widget can use PanelLogic
Module config
To module add parameter 'panels' and in configuration for module add panels routes
To controller add parameter 'panels' and in configuration for module add panels routes
Optionally, if no possible add to module parameter 'panels', panel routes can define in parameters
Panel controller with access control and view rendering
Standard view path: d3modules/d3accexport/views/invoice-panel/setting_grid.php