Welcome Guest, Not a member yet? Register   Sign In
CrudIgniter
#1

[eluser]ThiagoPHX[/eluser]
Hey everyone, let me share an opensource project that I have been working for some time,
the definitive code generator for CodeIgniter.

The CrudIgniter run in the console and after reading the database generates the whole application.

Hope you all enjoy, and most importantly it will be useful: P

Along with the download has completed documentation.
I recommend giving it a read, because CrudIgniter is very customizable.

In my blog has a post (in Portuguese)
http://thiagorigo.com/blog/

Google code link
http://code.google.com/p/crud-igniter/
#2

[eluser]Kon Wilms[/eluser]
[quote author="ThiagoPHX" date="1272269209"]Hey everyone, let me share an opensource project that I have been working for some time,
the definitive code generator for CodeIgniter.

The CrudIgniter run in the console and after reading the database generates the whole application.
[/quote]

Great job so far! The output is clean and logical - this will save me some time Smile.
#3

[eluser]pickupman[/eluser]
Neat idea, I was just looking at something similar in the wiki the other day. Definitely one of those neat ideas. I messed around with it for a few minutes. It's hard to cookie cut the CRUD in the MVC, but this a nice start. If you are generating the views, it would be nice to prompt to add field from DB rather than adding all of them. I could see myself using the models function, as I have been able to create the same model for most of my controllers now.
#4

[eluser]ThiagoPHX[/eluser]
[quote author="Kon Wilms" date="1272341809"]
Great job so far! The output is clean and logical - this will save me some time Smile.[/quote]

Thanks, the ideia now, is to go better every version.
#5

[eluser]ThiagoPHX[/eluser]
[quote author="pickupman" date="1272345104"]Neat idea, I was just looking at something similar in the wiki the other day. Definitely one of those neat ideas. I messed around with it for a few minutes. It's hard to cookie cut the CRUD in the MVC, but this a nice start. If you are generating the views, it would be nice to prompt to add field from DB rather than adding all of them. I could see myself using the models function, as I have been able to create the same model for most of my controllers now.[/quote]

Hey, sure to choose the fields of the view instead of adding all is an excellent idea, I will think more about it in the next version.

Thanks!
#6

[eluser]pickupman[/eluser]
I noticed that the layers are not being created properly in the controllers when you don't select 'required' for form validation. Layers end up being named as their validation types.
Example:
Validation options [2] (Your own validation rules) I enter
[2]trim

Field name in controller gets created as 'trim' and not name of database field. It seems to also be a problem if you real human names have spaces.
#7

[eluser]ThiagoPHX[/eluser]
[quote author="pickupman" date="1273639215"]I noticed that the layers are not being created properly in the controllers when you don't select 'required' for form validation. Layers end up being named as their validation types.
Example:
Validation options [2] (Your own validation rules) I enter
[2]trim

Field name in controller gets created as 'trim' and not name of database field. It seems to also be a problem if you real human names have spaces.[/quote]

Thanks for reporting!
I'll check it.
#8

[eluser]ThiagoPHX[/eluser]
[quote author="pickupman" date="1273639215"]I noticed that the layers are not being created properly in the controllers when you don't select 'required' for form validation. Layers end up being named as their validation types.
Example:
Validation options [2] (Your own validation rules) I enter
[2]trim

Field name in controller gets created as 'trim' and not name of database field. It seems to also be a problem if you real human names have spaces.[/quote]


Hey, sorry the delay, this a small bug at generator/ViewGenerator.php line 126.
http://code.google.com/p/crud-igniter/so...or.php#126

You just need to add a "space" at the regular expression.
Like that.

File with bug:
Code:
if (preg_match_all('/(?:\'|"){1}[\w\|\[\]]+(?:\'|"){1}/i', $rule, $parameters)) {

The fix:
Code:
if (preg_match_all('/(?:\'|"){1}[\w\|\[\] ]+(?:\'|"){1}/i', $rule, $parameters)) {

This will be fixed in the next version. Tongue
Thanks for reporting!
#9

[eluser]Barber of Padua[/eluser]
[quote author="ThiagoPHX" date="1272269209"]Hey everyone, let me share an opensource project that I have been working for some time,
the definitive code generator for CodeIgniter.

The CrudIgniter run in the console and after reading the database generates the whole application.

Hope you all enjoy, and most importantly it will be useful: P

Along with the download has completed documentation.
I recommend giving it a read, because CrudIgniter is very customizable.

In my blog has a post (in Portuguese)
http://thiagorigo.com/blog/

Google code link
http://code.google.com/p/crud-igniter/[/quote]

It's cute :-) Works like a charm and nicely documented too. Thumbs up!
#10

[eluser]ThiagoPHX[/eluser]
[quote author="Barber of Padua" date="1278874782"][quote author="ThiagoPHX" date="1272269209"]Hey everyone, let me share an opensource project that I have been working for some time,
the definitive code generator for CodeIgniter.

The CrudIgniter run in the console and after reading the database generates the whole application.

Hope you all enjoy, and most importantly it will be useful: P

Along with the download has completed documentation.
I recommend giving it a read, because CrudIgniter is very customizable.

In my blog has a post (in Portuguese)
http://thiagorigo.com/blog/

Google code link
http://code.google.com/p/crud-igniter/[/quote]

It's cute :-) Works like a charm and nicely documented too. Thumbs up![/quote]

Hey thanks a lot Smile




Theme © iAndrew 2016 - Forum software by © MyBB