http://stackoverflow.com/questions/27781793/install-extension-using-composer-in-yii2-0
https://github.com/dimpled/Yii2-Learning
https://github.com/kartik-v/yii2-grid
http://demos.krajee.com/export
http://demos.krajee.com/export-demo-dtl/menu-only
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
แล้ว จึงสั่ง composer update โดยชี้ไปที่
C:\cd wamp\www\yii2b-devices>composer update
module
'modules' => [
'gridview' => [
'class' => '\kartik\grid\Module'
]
],
CODE:
echo ExportMenu::widget([
'dataProvider' => $dataProvider,
'columns' => $gridColumns,
'fontAwesome' => true,
]);
ไม่มีความคิดเห็น:
แสดงความคิดเห็น