Subscribe: Posts / Comments / Email


RSS

CodeGen 1.2

Mon, Mar 16, 2009

Projects

Fixed a problem where a upper-cased table name was not letting the server side scripts work on the database.

Also added a live example of what it produces for anyone to browse.

Download: Moved Project to Google Code

Tags: ,

1 Comments For This Post

  1. Philip Says:

    Hey!

    I am new to Flex and AMFPHP. I downloaded CodeGen_1.2 but I can’t seem to get it to work i.e. I’m getting errors.

    Here’s my config.xml file:

    localhost
    root

    CodeGen
    sportzphotos
    http://localhost/amfphp/gateway.php
    com.philip.codegen

    here’s the php file:
    require_once ‘CodeGen.php’;

    $schema = ‘output/test.xml’;
    $config = ‘output/config.xml’;

    echo ”;

    $codegen = new CodeGen ( $config );
    //$codegen->writeSchema();
    $codegen->generateCode ( $schema );

    echo ”;

    here’s what I get:

    Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity “file:///D:/wamp/www/test_codegen/output/test.xml” in D:\wamp\www\test_codegen\library\SchemaReader.php on line 23

    Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 91
    Generating Flex Main Applcation for sportzphotos

    Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 94

    Generated Cairngorm Service Locator
    Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 97

    Generated Cairngorm Model Locator for sportzphotos
    Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 100

    Generated Cairngorm Controller for CodeGen
    Warning: fopen(output/server/com/philip/codegen/Connection.php) [function.fopen]: failed to open stream: No such file or directory in D:\wamp\www\test_codegen\library\FileSystemService.php on line 182

    Warning: fwrite(): supplied argument is not a valid stream resource in D:\wamp\www\test_codegen\library\FileSystemService.php on line 190

    Warning: fclose(): supplied argument is not a valid stream resource in D:\wamp\www\test_codegen\library\FileSystemService.php on line 192

    I wouls sure like to know what to do to get this working.

    Philip

Leave a Reply