awecrud

Powerful and simple Code Generator (Gii+Bootstrap). Multilingual CRUD/Gii extension.
28 followers

Features

  • MANY_MANY support (Master-Detail - No 3rd party extensions required).
  • Powerful Source Code Generator for Models and CRUD
  • All CSS code uses Bootstrap.
  • Auth, Cruge, YUM, and other RBAC extensions supported natively and they are fully customizable.
  • i18n messages are enabled by default (Currently Spanish, Portuguese, German, French & Lithuanian are supported, contributors are welcomed).
  • Icons for Operations menu added when generating CRUD

Requirements

  • Yii 1.1.13
  • Yii-Booster/Bootstrap extension (for Bootstrap support)
  • PHP 5.2+

Usage

Installing

1) Extract the directory "AweCrud" (case-sensitive) from the downloaded archive into your application's protected/extensions directory.

2) Configure the gii generator path in your application, like:

'modules' => array(
    'gii' => array(
        'class' => 'system.gii.GiiModule',
        'generatorPaths' => array(
            'ext.AweCrud.generators', // AweCrud generators
        ),
    ),
),

3) Configure your application to automatically load the AweCrud component classes when needed, like:

'import' => array(
    ...
    'ext.AweCrud.components.*', // AweCrud components
),

4) Register the AweCrud messages directory, like the example below.

'components' => array(
    ...
    'messages' => array (
        'extensionPaths' => array(
            'AweCrud' => 'ext.AweCrud.messages', // AweCrud messages directory.
        ),
    ),
),

Resources

Comments

This extension is a kind of merge among several Gii extensions, looking for simplicity for Gii and a powerful code generator integrated with Cruge.

This extension borrows some ideas and code from other extensions like iCrud, GTC, Yii-Booster, GiiX, AweGen, Yii-Bootstrap and mix them all making a much simpler but powerful Gii extension plus Bootstrap look-and-feel.

Total 12 comments

#10596 report it
robregonm at 2012/11/06 12:41pm
Report in forum

@aleksdj Could you please report the bug in the forum? Including the details of the error and structure of the class inheritance?

#10555 report it
aleksdj at 2012/11/04 05:05pm
problems

Im having some problems. -Some of your classes dont import all the components clases inside ext.awecrud.components and fails. -LoadModel and perform ajax validation functions of generated controllers is not compatible with father class "AweController" meaning signature is different -I downloaded last 1.12 version of yii but the problems with messages using yii:t('Awecrud.app') still persists

#10519 report it
robregonm at 2012/11/01 04:32pm
Looking forward

@aleksdj @rosoft2001 It's not a matter o bad practices, it is a matter of taking advantage of future features and moving forward with "Yii-trend". If you don't want to use i18n feature, just skip it and use the extension without it ;)

#10515 report it
aleksdj at 2012/11/01 03:41pm
I agree with @rosoft2001

You cannot base an extension in a development Yii version, I think is a matter of best practices... any solution for yii stable 1.1.12 version?

#10496 report it
rosoft2001 at 2012/10/31 02:53pm
not working yet

Even if it's cool to use the latest features from the development yii version, I can't chase this, mostly because of my limited knowledge.

I will wait until this work out of the box with the yii released version.

Just post a comment when this would happen and I will try it again.

Thanks

#10495 report it
robregonm at 2012/10/31 02:28pm
Update required

For those who are experiencing issues with "extensionPaths" parameter(Property "CPhpMessageSource"."extensionPaths" is not defined), please download the latest dev version of Yii from Yii GitHub official repository

#10355 report it
robregonm at 2012/10/22 01:04pm
RE: Property "AweModelCode.connectionId" is not defined.

@rosoft2001 Please check you're using Yii 1.1.12. That property has been inherited from CodeModel (a Gii core class).

#10338 report it
rosoft2001 at 2012/10/20 12:43pm
Property "AweModelCode.connectionId" is not defined.

installed, generated model and crud for a table, then i get this error can't get out of it.

(regular model crud still working)

#10286 report it
robregonm at 2012/10/17 09:07am
Soon a screenshot will be available

@WebDevPT I hope to upload a screenshot soon!

#10285 report it
robregonm at 2012/10/17 09:06am
Not related to awegen

@schmunk No, this extension just borrows some ideas from Awegen (and some other extensions)... but looking a more "bootstrap-purist" way.

#10280 report it
schmunk at 2012/10/17 07:25am
Awegen?

Is it related to http://www.yiiframework.com/extension/awegen?

#10274 report it
WebDevPT at 2012/10/17 06:11am
Please add demo or screnshot

Hi! Looking forward to test this, but please consider adding a screenshot or a demo here.

Leave a comment

Please to leave your comment.

Create extension