Giix-Haml is based on Giix 1.9
From the giix extension...
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.
giix-haml simply adds haml templates
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.
This extension requires the haml-and-sass extension. Please install it first.
Giix-Haml should run with:
Giix-Haml may run on other setups, but there is no official suppport for them. There is no planned official support for other setups, including Windows/IIS, XAMPP/etc or other DBMS.
Copy the directoryies "core" and "components" from the downloaded archive, or clone this repository, into your application's protected/extensions/giix directory. You'll have to create the giix directory.
Configure the gii generator path in your application, like:
'modules' => array( 'gii' => array( 'class' => 'system.gii.GiiModule', 'generatorPaths' => array( 'ext.giix.core', // giix generators ), ), ), . . .
'import' => array( ... 'ext.giix.components.*', // giix components ),
It is recommended to set at least the 'password' and 'ipFilters' properties in gii for security.
For more information see the gii documentation at http://www.yiiframework.com/doc/api/GiiModule.
Additionaly, you may remove the entire 'giix.core' directory and generator configuration (step 2 above) when releasing your Web application for improved security.
After installing, you will see the giix generators on the gii page. The giix generators' names start with "giix". When generating CRUD, select the haml template under Read the gii doumentation at http://www.yiiframework.com/doc/api/GiiModule on how to use it.
If you want to use the GxActiveRecord::saveWithRelated method, you must first generate the pivot model for the cross-reference table of the relationship. The pivot model class is the active record between two other active records that have a MANY_MANY relationship. If you have already generated models for every table in your schema, you are ready to use the method to save your MANY_MANY relations. If you use the support for saving MANY_MANY relations as generated, you will need to manually write code to support scenarios. This is an important security concern.
You can fork it on github