Yii 1.1: giiplus

A new CRUD generator for Yii framework.
43 followers

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

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.

Total 20 comments

#16400 report it
nigel at 2014/02/19 08:57am
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.*',

#15402 report it
Wan at 2013/11/06 07:01pm
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

#12400 report it
beesho at 2013/03/18 12:07pm
Demo Link

Hello, Thanks for this nice extension. The demo link seems to be dead.. May you please re-create it?

#11289 report it
Jimako at 2013/01/03 02:45pm
Thanks

Many thanks

#9912 report it
Abhishek Shah at 2012/09/21 06:52am
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.

#9759 report it
sirin k at 2012/09/08 03:30pm
User criteria

Try this,

$criteria=new CDbCriteria;
$criteria->condition="";
$criteria->limit="";
 
$model = Test::model()->findAll($criteria);
#9753 report it
Abhishek Shah at 2012/09/08 05:25am
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.

#9752 report it
sirin k at 2012/09/08 03:49am
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

#9751 report it
Abhishek Shah at 2012/09/08 03:22am
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?

#9517 report it
sirin k at 2012/08/20 04:44am
cool

cool.

#9515 report it
Gustavo Andrade at 2012/08/19 09:06pm
Congrats!!!

Nice extension man! Work's fine for me ^^

#9512 report it
sirin k at 2012/08/19 04:28am
thanks

thanks magu...

#9511 report it
MAHESH.E.U at 2012/08/19 02:55am
good one.

this is an useful extension. sirin ibin thanx for that

#9440 report it
sirin k at 2012/08/10 11:17am
i think

i think you may not be installed this properly.coz this is working very fine for me.

#9430 report it
Pankaj@Browsewire at 2012/08/10 01:16am
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....!

#9416 report it
sirin k at 2012/08/09 09:05am
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.

#9415 report it
Pankaj@Browsewire at 2012/08/09 08:56am
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...

#8865 report it
Kinetik at 2012/07/05 01:23am
Great! I Like It!

Thank for great effort!

#8717 report it
francis ja at 2012/06/21 12:12am
PDF and Excel

Hi sirin , nice extension

#8678 report it
sirin k at 2012/06/19 12:17am
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

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet