Part of the EllisLab Network
   
1 of 4
1
New Simple Code Generation
Posted: 11 January 2008 01:38 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  01-09-2007

I realize this is somewhat of a controversial topic around CI, but I find a bit of code generation always helps me get moving.

Therefore I’ve created a simple little code generator for CI called “Ignition” that generates all of your model/views/controller and sql code for your objects.  Don’t expect a pretty interface on generated code, because Ignition makes NO assumptions about what your app needs or does.  It simply generates the mundane code that we all find ourselves writing all the time and then gets our of your way to so you can do your thing.

If anyone is interested, please check it out: http://ignition.lifewithryan.com

Sorry if anyone thinks this is spam…its not intended to be since this script only works with Code Igniter.  I realize its not a Code Igniter website that I’m introducing, but I figured since its a Code Igniter utility that this was the right place to post it.

 Signature 

http://ignition.lifewithryan.com—CI Code Generation
http://pol.itik.us—Political Social Network written in CI
http://www.lifewithryan.com—My Blog spam wink

Profile
 
 
Posted: 11 January 2008 05:32 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

Doesn’t sound like spam at all.  This sounds like a great contribution!  Thanks lifewithryan!  I’m moving this into “ignited code” so more people can see it and put it through its paces.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 11 January 2008 05:48 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  447
Joined  05-21-2007

Hi lifewithryan,

i just give some test to your stuff, that work pretty well, this is realy fast efficient generation on the fly.

i’ll probably give a look to how you build your stuff and maybe do some suggestion.

But i have to say it’s realy realy near from what i always wanted being added to Ci.

Thanks !

 Signature 

-> None official irc channel [ irc.freenode.net #codeigniter ]

Profile
 
 
Posted: 11 January 2008 07:49 PM   [ Ignore ]   [ # 3 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  01-09-2007

Thanks guys…

I’d been needing something like this for quite some time and finally had the chance to write it.

There’s A TON of refactoring that can be done to the ignite script, but I wanted to get something out there first.

Hope it works for you and if you have additions, etc…please let me know smile

 Signature 

http://ignition.lifewithryan.com—CI Code Generation
http://pol.itik.us—Political Social Network written in CI
http://www.lifewithryan.com—My Blog spam wink

Profile
 
 
Posted: 11 January 2008 08:54 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  211
Joined  02-14-2007

Looks really nice.  I will try to test on my next project.  How configurable is the directory structure?  I like to keep the system directory out of the web root and use a modified index.php to accomplish this. 

Thanks for a great contribution to CI.

Profile
 
 
Posted: 12 January 2008 10:51 AM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  01-09-2007
Neovive - 11 January 2008 08:54 PM

Looks really nice.  I will try to test on my next project.  How configurable is the directory structure?  I like to keep the system directory out of the web root and use a modified index.php to accomplish this.

What I would do in that case is go ahead and generate everything as the standard CI install land then move things around after the fact.  That’s the beauty, I don’t really “force” anything upon the user, nor do I make it difficult to change it.

You’ve stumbled across the only assumption that I guess I’m making and thats the CI directory structure is the default.  I don’t think it’d be a big deal to generate as is, then move the system dir to wherever you want and modify the index.php.

Let me know how it goes!  Thanks for the feedback!

 Signature 

http://ignition.lifewithryan.com—CI Code Generation
http://pol.itik.us—Political Social Network written in CI
http://www.lifewithryan.com—My Blog spam wink

Profile
 
 
Posted: 12 January 2008 11:39 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  366
Joined  04-27-2006

eehhhmmm…. and where can I download it??
I didn´t find anything…

Profile
 
 
Posted: 12 January 2008 12:34 PM   [ Ignore ]   [ # 7 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  01-09-2007
gunter - 12 January 2008 11:39 AM

eehhhmmm…. and where can I download it??
I didn´t find anything…

Heh…there should be a link on my wiki: http://ignition.lifewithryan.com

but here’s a direct link: http://ignition.lifewithryan.com/ignition.zip

I highly recommend reading the wiki as I give a pretty nice overview/tutorial on how to set it up and run it.

 Signature 

http://ignition.lifewithryan.com—CI Code Generation
http://pol.itik.us—Political Social Network written in CI
http://www.lifewithryan.com—My Blog spam wink

Profile
 
 
Posted: 15 January 2008 05:06 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  01-09-2007

Hey everyone…

For anyone who may be playing with Ignition, I’ve found and fixed a couple issues:

#1) I found that the script wasn’t respecting the notNull/Null flags in the config file unless it was a primary key field.  This is now fixed.

#2) I used to regenerate header and footer includes for each run of the script.  I’m now checking to see if those two files exists, if they do, you’ll get a warning and the script will NOT overwrite them and continue as normal.  This serves two purposes:  A) allows you to have your own header.inc.php and footer.inc.php files and not worry about getting them overwritten B) there’s no need to regenerate those files over and over again if I’ve already done it once.

Apparently some of you are looking at this because my webstats have increased a bit…so let me know what you think.

I’m uploading the latest zip file as I write this. (http://ignition.lifewithryan.com/ignition.zip)

Thanks!

 Signature 

http://ignition.lifewithryan.com—CI Code Generation
http://pol.itik.us—Political Social Network written in CI
http://www.lifewithryan.com—My Blog spam wink

Profile
 
 
Posted: 15 January 2008 05:43 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  486
Joined  09-14-2006

Nice. I can confirm it does work on Windows.

 Signature 

Code Igniter 1.5.4 / CentOS 5 / PHP 5.2.3 / Apache 2.2.2 / MySQL 5.0.27

Profile
 
 
Posted: 15 January 2008 06:00 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Avatar
Rank
Total Posts:  60
Joined  01-09-2007
joeles - 15 January 2008 05:43 PM

Nice. I can confirm it does work on Windows.

That’s awesome man, thanks!  I just don’t have a windows box with PHP/Apache/MySQL all setup…I’m so rarely in windows.

Thanks for the feedback!

 Signature 

http://ignition.lifewithryan.com—CI Code Generation
http://pol.itik.us—Political Social Network written in CI
http://www.lifewithryan.com—My Blog spam wink

Profile
 
 
   
1 of 4
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120536 Total Logged-in Users: 40
Total Topics: 126598 Total Anonymous Users: 3
Total Replies: 665552 Total Guests: 397
Total Posts: 792150    
Members ( View Memberlist )
Newest Members:  sweeper240andrew nsuntroprachel123Rach123Glenn StavaImfaelSMS!persanulandrewknight