Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
richkay committed May 27, 2016
1 parent 224aba4 commit 71eb5fc
Show file tree
Hide file tree
Showing 52 changed files with 3,692 additions and 1,149 deletions.
24 changes: 24 additions & 0 deletions BulkButtonWidget.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
namespace richkay\geesgii;

use yii\base\Widget;
use yii\helpers\Html;

class BulkButtonWidget extends Widget{

public $buttons;

public function init(){
parent::init();

}

public function run(){
$content = '<div class="pull-left">'.
'<span class="glyphicon glyphicon-arrow-right"></span>&nbsp;&nbsp;With selected&nbsp;&nbsp;'.
$this->buttons.
'</div>';
return $content;
}
}
?>
3 changes: 3 additions & 0 deletions Geesgii.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ protected function coreGenerators()
return [
'model' => ['class' => 'richkay\geesgii\generators\model\Generator'],
'crud' => ['class' => 'richkay\geesgii\generators\crud\Generator'],
'controller' => ['class' => 'richkay\geesgii\generators\controller\Generator'],
'migration'=>['class' => 'richkay\geesgii\generators\migration\Generator'],
'module'=>['class' => 'richkay\geesgii\generators\module\Generator'],
];
}
}
13 changes: 13 additions & 0 deletions GiiAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,18 @@ class GiiAsset extends AssetBundle
'yii\bootstrap\BootstrapAsset',
'yii\bootstrap\BootstrapPluginAsset',
'richkay\geesgii\TypeAheadAsset',
'kartik\grid\GridViewAsset',
];
public function init() {
// In dev mode use non-minified javascripts
$this->js = YII_DEBUG ? [
'ModalRemote.js',
'geesgiicrud.js',
]:[
'ModalRemote.min.js',
'geesgiicrud.min.js',
];

parent::init();
}
}
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# yii2-geesgii
Yii2 GII
# Gees Gii
SetUP

'modules' => [
....
'gridview' => [
'class' => '\kartik\grid\Module'
],
.....
],

/** Gii Setup **/
$config['bootstrap'][] = 'geesgii';
$config['modules']['geesgii'] = [
'class' => 'richkay\geesgii\Geesgii',
];

0 comments on commit 71eb5fc

Please sign in to comment.