giix

giix is gii Extended, a code generator for Yii PHP framework.
102 followers

Overview

giix is gii Extended, a code generator for Yii PHP framework.

giix is inspired and based on gii-template-collection (gtc), by Herbert Maschke (thyseus).

giix is free software and is dual-licensed under the terms of the new BSD License and under the terms of GNU GPL v3. See the LICENSE file.

Links

Forum discussion for giix
giix on Google Code

Latest news

giix 1.9.1 is here. It fixes the issue #23.

Acknowledgements

giix is inspired and uses code from Yii PHP framework and gii-template-collection. Many thanks to Qiang Xue, Herbert Maschke and the contributors of these software.

Features

giix extends Yii's gii by providing:

  • Proper handling of related model attributes, rendering appropriate form fields based on relation type.
  • More support for HAS_MANY and MANY_MANY relations.
  • Native support for saving MANY_MANY relations with the new method GxActiveRecord::saveWithRelated.
  • Native support for saving multiple (related or not) records with the new method GxActiveRecord::saveMultiple.
  • Automatic string representation for a model via GxActiveRecord::representingColumn() and GxActiveRecord::__toString().
  • Better i18n support and easier to maintain: support to active record labels. You change the label once in the model and it is automatically updated in the views. This is especially useful for plurals.
  • Out-of-the box i18n support by using Yii::t().
  • Appropriate form fields are rendered based on model attribute/table field data type.
  • Separated model and basemodel. Basemodel can be regenerated without overwriting your code in the model.
  • Smart methods can query your database for just the needed data (usually the primary key and the field with the string representantion), avoiding manual setup or a "select *".
  • Extensive use of default method parameters. Appropriate data is found automatically.
  • Some (incipient) support for tables with composite primary keys.
  • Generated code is completely free from styling and formatting. Your CSS controls the presentation.
  • Generated code is (almost) free of comments.
  • Well documented and commented source code. Ohloh says that 40% of the lines in the code are comments! You can understand and modify anything you want.

And a lot more! Read the CHANGELOG file and the (richly commented) source code to fully leverage giix's power.

Some of these features come from gtc.

Warnings

giix is not fully tested now, so please test your application and be careful using it.
giix is still in development. Some changes may break backwards compatibility.

Are you upgrading? Please don't forget to read the UPGRADE file for instructions!

Some users reported problems extracting the files from the archive.
Please download the free 7-zip version 9.20, it is reported to work well.

Installation and upgrading

Please see INSTALL and UPGRADE files for instructions.

Please check the README file for more information.

Reactions

Extensions based on giix

Already using giix?

Show the love! Show how you love giix on the forum and on this extension page
Upvote! Upvote giix
Show off! Show everybody that you are using giix in Powered by giix
Donate! Donate (see below)

Donate

Donate via Flattr Donate via Flattr

Donate via Paypal Donate via Paypal (via giix website)

Icons by famfamfam.com

Total 20 comments

#6948 report it
yiimann at 2012/02/15 11:59am
nice

Very nice. Thank you!

#6811 report it
mentel at 2012/02/06 07:13pm
@c@cba

Thanks!

#6808 report it
c@cba at 2012/02/06 04:19pm
@mentel

Hi mentel,

I changed the filename from giix-1.9.1.tgz to giix-1.9.1.tar.gz. WinRar and 7zip behaved exactly like before: i.e. WinRAR didn't extract throwing 'corrupt file' error, and with 7zip I had to go through the steps 1-4 described below.

#6802 report it
mentel at 2012/02/06 08:24am
@c@cba

Sorry I didn't read your comment correctly :)
Thanks for the detailed explanation! Other users will like it.

Please try renaming the initial file from .tgz to .tar.gz and check if WinRAR and 7-Zip will perform as expected. If you confirm this, I'll name the next versions like this.

Thanks!

#6800 report it
c@cba at 2012/02/06 06:17am
Extraction using 7zip 9.20

Hi mentel, I was already using 7-zip 9.20 (see my comment below). In principle, it extracts without problems. But the result is a single file without any extensions.

Problem solved: While writing this comment, in particular the phrase 'without any extensions', I had the idea that this third file could also be a compressed file, but in disguise. And that led to the following solution (using 7zip 9.20):

  1. Extract giix-1.9.1.tgz ---> to giix-1.9.1/ ==> Results with the file giix-1.9.1.tar in the created folder.
  2. Extract giix-1.9.1.tar ---> to giix-1.9.1/ ==> Results with the file giix-1.9.1 in the created folder.
  3. Change the name of the file giix-1.9.1 ---> to giix-1.9.1.zip
  4. Extract giix-1.9.1.zip ---> to giix-1.9.1 (this works also with WinRAR)
    In this last created folder, there are the files.

Note: I tried "Extract Here" on the extension-less file without adding the '.zip', it didn't work. But if you use "Extract files..." and then provide a folder name different from the name of the file, then it works without adding the '.zip' to the filename.

Oddly, this worked too (if you don't want to install 7zip and want to use WinRAR):

  1. Change filename giix-1.9.1.tgz ---> to giix-1.9.1.rar
  2. Extract giix-1.9.1.rar ---> to giix-1.9.1/ (with WinRAR) and move to folder
  3. Change filename giix-1.9.1 ---> to giix-1.9.1.rar
  4. Extract giix-1.9.1.rar ---> to giix-1.9.1/ and move to folder
  5. Repeat 3. and 4.

Now I can get to the fun part :) Thanks again for this extension!

#6795 report it
mentel at 2012/02/05 10:48pm
@c@cba

Re: Extracting Problems

Hi c@cba,

Some commenters below reported that you can extract the files with 7zip version 9.20.
Please report back if you can't extract the files with the version above.

#6791 report it
c@cba at 2012/02/05 07:58am
Extracting Problems

hi mentel, this extension is just what I was looking for (according to descriptions). but I have problems extracting it.

I tried with WinRAR (version 4.10, 64 bit on Window7), and get an 'archive is corrupt' error.

I tried 7-zip (version 9.20): extracted first the archive giix-1.9.1.tar from giix-1.9.1.tgz without problems. But when I extract giix-1.9.1.tar, there is only one file named ""giix-1.9.1"" in it.

I'd be happy for any suggestions?

#6567 report it
vscarpellini at 2012/01/19 01:03am
Thanks

You did a great job, congratulations! I've done two sites using giix hugs.

#5730 report it
mentel at 2011/11/07 05:17am
@sieppl

Very nice. Thank you!

#5725 report it
sieppl at 2011/11/07 04:32am
7-zip 9.20 works fine

@mentel. Did an upgrade in the meantime. So I cannot tell which version caused the problem. Now I am using 9.20 and it works after testing again today (see comment of max-300).

#5724 report it
mentel at 2011/11/07 04:19am
@max-300

Thanks!

#5723 report it
max-300 at 2011/11/07 04:09am
7zip

I used 9.07 beta. But I just upgraded to 9.20 and it works too. Note: When you unzip and untar giix-1.9.1.tgz, you get a file named giix-1.9.1 Click again on this file and select unzip to (folder) -> then you will get the content of the package.

#5721 report it
mentel at 2011/11/06 11:47pm
Re: corrupt

@wisp
I use RAR, too and it is ok here.
Could you please tell me the version of your RAR?

@max-300
Could you please tell me the version of your working 7zip?

@sieppl
If you are reading, could you please do the same for the version of 7zip you had problems with?

Thanks

#5718 report it
wisp at 2011/11/06 03:13pm
7zip

7zip works, although i prefer winrar :)

#5717 report it
max-300 at 2011/11/06 02:55pm
Try 7zip

I had no problems to unzip/untar the archives using 7-zip (http://www.7-zip.org) on Windows.

#5716 report it
wisp at 2011/11/06 01:28pm
corrupt

winrar is complaining about the archives being corrupt.. where can I download the zip?

#5456 report it
mentel at 2011/10/13 02:48pm
Re: Cannot extract on Windows

Hi sieppl,

It was archived using tar under Linux, like the other files. It works for me with tar in a different Linux box and with RAR in a Windows machine. I uploaded a zip file for you.

Anyone else with this issue?

#5455 report it
sieppl at 2011/10/13 02:07pm
Cannot extract on Windows

Hi mentel,

I wanted to update to your latest version 1.9.1, but it seems 7-Zip fails to untar your file on Windows. After un-taring I have an file instead of an folder. Same issue with 1.9, giix-1.7.tgz is extracting fine. Can you please provide a zip or check if you changed some gzip options from 1.7?

Regards Sebastian

#5351 report it
mentel at 2011/10/06 07:36am
giix 1.9.1 and THANK YOU!

Guys, you are awesome.
A few days ago I saw that giix is currently ranking first as the most upvoted extension for Yii!

I'd like to thank you very much for your feedback :)

And there is giix 1.9.1, with a fix for the issue #23. This issue was already fixed in the trunk, but I have decided to make this release until the new version is not ready.

And the version 2.0 is being carefully prepared. Stay tuned!

#4848 report it
mentel at 2011/08/21 11:56am
@ChessSpider

Hi ChessSpider,
Please open a ticket and I'll think in something.

Thanks!

Leave a comment

Please to leave your comment.

Create extension