A new CRUD generator for Yii framework with the following features. ie., 1.pdf export. 2.excel export. 3.print @view.
you can download the extension here:https://dl.dropbox.com/u/74072668/giiplus.zip
Requirements ¶
Bootstrap
Usage ¶
Note:integrate bootstrap before doing this.
step1:Download the zip file and put it in your extensions directory.
step2:
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'123',
'generatorPaths' => array(
'ext.giiplus',
),
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
eg:
i have a table test(id,name,age).I have generated a crud for this.You can find a demo below.
Resources ¶
GitHub ¶
- Find source code @GitHub:https://github.com/sirinibin/yiidemos
Credit goes to ¶
1.bootstrap
i have used bootstrap's gii crud generator to make my customized giiplus crud generator.
2.TCPDF
For PDF generation i have integrated an extension with this crud generator
Name: TCPDF
Version: 5.9.157
Release date: 2012-04-16
Author: Nicola Asun
URLs:
http: www.tcpdf.org
http: www.sourceforge.net/projects/tcpdf
so im giving all the credits to Nicola Asun for this Pdf generation feature.
Regards,
Sirin K
PDF and Excel
Hi, thanks for the extension. Is this reliant on any extensions for generating the PDF and excel files?
PDF and Excel
It's a very good extension for me to generate to export my content to pdf or excel
well done ! i like it
looks pretty ! thanks for sharing
PDF generation.
For PDF generation i have integrated another extension with this crud generator
ie
Name: TCPDF
Version: 5.9.157
Release date: 2012-04-16
Author: Nicola Asun
URLs:
http: www.tcpdf.org http: www.sourceforge.net/projects/tcpdf
so i'm giving all the credits to Nicola Asun for this Pdf generation feature.
-Sirin
PDF and Excel
Hi sirin , nice extension
Great! I Like It!
Thank for great effort!
PDF and Excel Export
Hi...I cant see the options for PDF export and Excel export on my page after following all the steps specified by you....I just got a different look for my grid...nothing else...please help...
Use bootstrap CRUD generator
hi,
i think you have used the default gii crud generator.
please use "bootstrap CRUD generator" on the bottom of the list.
Already used bootstrap
Thanks for the concern but I am already using bootstrap CRUD for that.....which is just helping me to manage my grid not other links like create,update and also could not see export buttons....!
i think
i think you may not be installed this properly.coz this is working very fine for me.
good one.
this is an useful extension. sirin ibin thanx for that
thanks
thanks magu...
Congrats!!!
Nice extension man! Work's fine for me ^^
cool
cool.
pagination in export
I have use pagination in my cgridview,now I want that during export also,I get it accordingly,I want only 10 records in export,than ,I m able to extract other 10.Can u help me,how to use it?
hi abhishek
You can see an action like below in ur associated controller:
public function actionGenerateExcel() { $session=new CHttpSession; $session->open(); if(isset($session['Test_records'])) { $model=$session['Test_records']; } else $model = Test::model()->findAll();/* You can set criteria inside this findAll based on ur needs*/ Yii::app()->request->sendFile(date('YmdHis').'.xls', $this->renderPartial('excelReport', array( 'model'=>$model ), true) ); }
Also if you need any change in the report generation.go to views and update excelReport.php
-Sirin
pagination
I have made controllers accordinly,I have Country model,I write Country_records,but it always going in else loop,& due to findall, all data displayed in excel.
User criteria
Try this,
$criteria=new CDbCriteria; $criteria->condition=""; $criteria->limit=""; $model = Test::model()->findAll($criteria);
export with cgridview current data
I use an ajaxlist extension for pagination. I use this extension for exporting cgridview to pdf and its work for me.
I also set criteria and if i give limit e.g 5, it display only first 5 data from table not current cgridview page data.
but I want that only current cgridview data export to pdf. so can you please suggest me how can I do that?
thanks in advance.
Thanks
Many thanks
Demo Link
Hello,
Thanks for this nice extension.
The demo link seems to be dead.. May you please re-create it?
howt to export Filtered data ONLY using giiplus?
Nice Job! I like your extension.
I have a quick question.
The extension does not export the filtered data properly when you have some search value like
">2", "<2", etc...
However, it works find when you put "2" , "3"
Could you let us know how we can improve it?
Thank you in advance
require_once(D:\Dev\Apache\htdocs\first\protected\extensions\tcpdf/tcpdf/tcpdf.php): failed to open stream: No such
add this line to import
in main
'application.extensions.giiplus.bootstrap.*',
YiiBooster 4.x
Are there plans to support yiibooster 4.x?
Planning a new release with Yii2.0 very soon
Planning a new release with Yii2.0 very soon.
i hope it will be in Bootstrap3.0 And yes may contain some of Yii booster features.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.