![]() |
New Simple Code Generation - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: New Simple Code Generation (/showthread.php?tid=5214) |
New Simple Code Generation - El Forum - 09-24-2008 [eluser]lifewithryan[/eluser] Okay guys...sorry but the site is back up now. I DO need to upgrade the wiki software soon though.... Thanks for your interest. New Simple Code Generation - El Forum - 09-24-2008 [eluser]daniel.affonso[/eluser] With me, the AVI is not running on Win Media Player only. It's running perfectly on the VLC media player. New Simple Code Generation - El Forum - 09-24-2008 [eluser]daniel.affonso[/eluser] Ryan, great work! I'm testing the ignition and fiting to my needs. Your work simply putting is a real time saver. New Simple Code Generation - El Forum - 09-24-2008 [eluser]lifewithryan[/eluser] Its certainly not "elegant" but gets the job done I think. If I had time I'd tweak it, make it OO and possibly webify it, but for now it serves its purpose. Quick, easy and gets out of the way. Glad you like it New Simple Code Generation - El Forum - 09-24-2008 [eluser]daniel.affonso[/eluser] Ryan, could you show us an example of how to set foreign keys/relationships? I believe i not doing the right way. New Simple Code Generation - El Forum - 09-25-2008 [eluser]lifewithryan[/eluser] I didn't build in any "magic" for handling relationships. But what you'd do is something like this (consider a blog): In /config/Blog table:blogs field:id:BIGINT:notNull:pk ...more blog fields... Now every blog should have comments, and comments would have a foreign key back to the blog in which they relate, so in /config/Comment: table:comments field:blog_id:BIGINT:notNull I don't have an "fk" association in the ignition script, I just handle that in my code. When someone submits a comment, I know i have to have the "id" of the blog and set comment->blog_id = blog.id, etc. Make sense? With ignition, I didn't want to really create TOO much ORM type stuff. A) I'm not that ambitious and B) I didn't want to paint anyone into a corner into doing things "my way" so to speak. (Granted, I sort of am doing that with the code I generate, but those are easy changes. Either change it after the fact --OR-- modify the templates to generate different code. Hope that helps. New Simple Code Generation - El Forum - 09-25-2008 [eluser]opel[/eluser] I hope I am following the wiki right but I am using terminal to navigate to ignite/bin and then running php ignite sql Blog and getting the following error when I run " php igniter sql Blog " : Could not open input file: igniter could you tell me wher eI am going wrong please? New Simple Code Generation - El Forum - 09-26-2008 [eluser]lifewithryan[/eluser] [quote author="Opel" date="1222397995"] Could not open input file: igniter [/quote] Looks like you are typing "igniter" instead of ignite. Try it without the trailing "r" ![]() New Simple Code Generation - El Forum - 09-26-2008 [eluser]opel[/eluser] oops my bad will try it when I get in from work, thanks New Simple Code Generation - El Forum - 09-29-2008 [eluser]opel[/eluser] I managed to get everything working, however there was no edit/update page created. Should this be the case ? I ran the command php ignite all @FileName@ |