dev-master
9999999-devView tree with organizational chart. Dependencies with kartik tree manager
MIT
The Requires
by Muh. Samsul Huda
extension yii2 tree treeimage
View tree with organizational chart. Dependencies with kartik tree manager
View tree with organizational chart. Dependencies with kartik tree manager, (*1)
, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist muhsamsul/yii2-treeimage "dev-master"
or add, (*5)
"muhsamsul/yii2-treeimage": "dev-master"
to the require section of your composer.json
file., (*6)
yii migrate/up --migrationPath=@vendor/muhsamsul/yii2-treeimage/migrations, (*7)
or import sql file on directory = vendor/muhsamsul/yii2-treeimage/db/tbl_tree.sql, (*8)
generete model with Table Prefix, (*9)
usage kartik tree-manager yii2-tree-manager, (*10)
Once the extension is installed, simply use it in your code by :, (*11)
in your view file: ```php use app\models\Tree; use muhsamsul\treeimage\TreeImage;, (*12)
= TreeImage::widget( 'query' => Tree::find()->addOrderBy('root, lft'), 'root' => 'Parent', //default parent 'icon' => 'user', //default user 'iconRoot' => 'tree-conifer', //default tree-conifer ); ?>View tree with organizational chart. Dependencies with kartik tree manager
MIT
extension yii2 tree treeimage