Skip to content

Instantly share code, notes, and snippets.

@motin
Created July 14, 2013 23:17
Show Gist options
  • Save motin/5996513 to your computer and use it in GitHub Desktop.
Save motin/5996513 to your computer and use it in GitHub Desktop.
<p> In addition to the default CRUD Generator provided by Gii, this Generator will:</p>
<h2>Default template</h2>
<ul>
<li> Obey model relations and render a appropriate DropDownList/CheckBox/ComboBox</li>
<li> Add Yii::t() for every string occuring so that your Application is easily being able to be translated to other languages </li>
<li> Add a Jui Datepicker Widget for date Fields </li>
<li> Add date() to timestamp, createtime and updatetime fields </li>
<li> Generate enum fields to a checkbox containing the possible values </li>
<li> Ajax and Client Validation is enabled for all forms, if enabled </li>
<li> Adds Cancel Button to create and update form </li>
<li> Disabled the comparison Operator hint and _search in the admin view </li>
<li> Remove all comments out of generated Code to avoid redundancy </li>
</ul>
<h3>Requirements</h3>
<ul>
<li>None</li>
</ul>
<h2>Slim template</h2>
<ul>
<li>Created for use with Phundament-based projects, this template's features includes all of the above as well as:</li>
<li>TODO</li>
</ul>
<h3>Requirements</h3>
<ul>
<li>EChosen</li>
</ul>
<h2>Hybrid template</h2>
<ul>
<li>Created for use with Phundament-based projects, this template's features includes all of the above as well as:</li>
<li>Uses TbActiveForm from YiiBooster and let's you choose between vertical and horizontal style forms. </li>
<li>Renders belongsTo-relations within forms, together with a modal Create form to add a new relation on-the-fly</li>
<li>_view and index templates for frontend listings and views</li>
<li>Editable hasMany-relation gridview on update view</li>
<li>Let's you choose between Redactor WYSIWYG, Bootstrap WYSIHTML5, CKEditor WYSIWYG, CKEditor WYSIWYG or plain text area for TEXT fields.</li>
<li>TODO</li>
</ul>
<h3>Requirements</h3>
<ul>
<li>YiiBooster</li>
<li>X-Editable for Yii</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment