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.
Please add demo or screnshot
Hi! Looking forward to test this, but please consider adding a screenshot or a demo here.
Awegen?
Is it related to http://www.yiiframework.com/extension/awegen?
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.
Soon a screenshot will be available
@WebDevPT I hope to upload a screenshot soon!
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)
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).
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
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
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?
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 ;)
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
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?
Question about the Manage action
I am not sure it is an issue or simply just doing something wrong bu when I generate a CRUD for a table and try to use the manage action I don't see the view, edit, delete icons I used to see using giix.
Am I doing something wrong?
Re: Question about the Manage action
The original CRUD icons has changed.
NEverthless, I recommend to you to clear your /assets/* folder.
If that doesn't work then check that you are really generating the CRUD from AweCrud module.
Regards.
Still on Manage
Made all the checks.
Started from scratch
Same result
The crud is made using AweCrud but the icons are not appearing.
Can you help me debugging it ?
Regards
Re: Still on manage
@kavitama
Hope it helps.
booster, boostrap, yiistrap
Hi,
I think i have been dealing with all the problems because I am using YYII strap and not booster or bootstrap.
CAn you confirm that yiistrap is ot supported or ma I wrong.
Thanks in advance
Kavi
Supporting yii-strap?
Hi,
Are you going to modify awecrud to support yiistrap?
Regards
Kavi
Yii-Strap not supported
@Kavi
No, no plans to support yiistrap yet.
However, feel free to make a pull request to add support to yiistrap (and allow to choose between yii-booster and yii-strap) in github repo.
Do not work
Don't work with Yii 1.1.14 and Yii-booster !
Dreaming of Awecrud over YII2
Any chance in the near future???
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.