giix is gii Extended, a code generator for Yii PHP framework.
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 how you love giix on the forum and on this extension page
Upvote giix
Show everybody that you are using giix in Powered by giix
Donate (see below)
Donate ¶
Donate via Flattr
Donate via Paypal (via giix website)
Icons by famfamfam.com
Total 20 comments
Very nice. Thank you!
Thanks!
Hi mentel,
I changed the filename from
giix-1.9.1.tgztogiix-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.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!
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):
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):
Now I can get to the fun part :) Thanks again for this extension!
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.
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?
You did a great job, congratulations! I've done two sites using giix hugs.
Very nice. Thank you!
@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).
Thanks!
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.
@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
7zip works, although i prefer winrar :)
I had no problems to unzip/untar the archives using 7-zip (http://www.7-zip.org) on Windows.
winrar is complaining about the archives being corrupt.. where can I download the zip?
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?
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
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!
Hi ChessSpider,
Please open a ticket and I'll think in something.
Thanks!
Leave a comment
Please login to leave your comment.