Subscribe: Posts / Comments / Email


RSS

CodeGen 1.7

Mon, May 11, 2009

Projects

This is a pretty big release, I found out that some of the classes didn’t work in the amfphp service browser, and some other amfphp internal issues was keeping it from fully being ran correctly.

I am sick of using it and sick of it not being reliable, and among other things. If you ask me, I think it is a hack-jab, but that is a different topic.

I have make some changes to the CodeGen 1.4-1.6 but it wasn’t noticeable to post about it, so here we are at 1.7, and the changes include:

  • Framework choice -  Cairngorm / General Flex AS3
  • Added a GUI and form with tool tips for creation.
  • Dumps all the output from when files are created.
  • Saves Config.xml and Schema.xml with the applications name in front of it, more application, more configuration files, so you can run the generator multiple times, and keep all old config files.
  • REST style php classes that handle CRUD on that table, fully prepared for REST type calls to the class itself… More on that later.
  • Database REST service class that holds all of the table classes so one script, all data.
  • Added an optional Class and Service file that will handle CRUD on any database and/or table (MySQL) guaranteed. So instead of running the CodeGen every time you create a new table, you can just place the database and table name in the URL query and have your data right there.
  • Added an optional Developers Copywrite to be placed at the top of every generated file.

Download: Moved Project to Google Code

Tags: ,

8 Comments For This Post

  1. stacey reiman Says:

    Wow Jonnie you are an incredible programmer – I just downloaded your older version today and the new one looks amazing. Do you freelance? Thanks for your awesome efforts!

  2. stacey reiman Says:

    I dropped all of these files into my /src folder of a newly created Flex project – then I copied the code from the /views/Main.mxml file to the same file in the /src folder – and when I try to compile I get these errors:

    Severity and Description Path Resource Location Creation Time Id
    1084: Syntax error: expecting identifier before dot. guestbook/src Main.mxml line 1 1242415164690 7630

    Severity and Description Path Resource Location Creation Time Id
    unable to open ‘D:\development\PureMVC\bin\PureMVC.swc’ fguestbook Unknown 1242361548531 7545

    I selected FLEX project instead of Cairngorm – but do I need PureMVC then? Not sure about the other error though

  3. stacey reiman Says:

    Ah this was my mistake on the second error – didn’t see that was another flex project kicking off that error.

    The error in the CodeGen generated project was a really simple one – it had failed to captilize a Controller – in this case it was listing and a couple other references in that file to guestbookController, when it needed to be GuestbookController. Hope that helps somebody else!

  4. Jonnie Says:

    Im glad you got it figured out. Send me that link when you get a chance.

  5. Jonnie Says:

    Ill take a look.

  6. Jonnie Says:

    Ya I have been doing some freelance work for some time now, but mostly I just do it for fun.

  7. Rick Says:

    Hi. Looks great but the download link is not working.
    Thanks!

  8. Jonnie Says:

    Sorry about that, I need to fix all the links since the Download Manager plugin broke.

    CodeGen

Leave a Reply