<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CodeGen 1.2</title>
	<atom:link href="http://jonniespratley.com/2009/03/16/codegen-12/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonniespratley.com/2009/03/16/codegen-12/</link>
	<description>Programming with Flash, Flex and PHP</description>
	<lastBuildDate>Mon, 12 Jul 2010 02:03:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Philip</title>
		<link>http://jonniespratley.com/2009/03/16/codegen-12/comment-page-1/#comment-154</link>
		<dc:creator>Philip</dc:creator>
		<pubDate>Mon, 30 Mar 2009 13:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://jonniespratley.com/2009/03/16/codegen-12/#comment-154</guid>
		<description>Hey!

I am new to Flex and AMFPHP. I downloaded CodeGen_1.2 but I can&#039;t seem to get it to work i.e. I&#039;m getting errors.

Here&#039;s my config.xml file:



	localhost
	root
	
	CodeGen
	sportzphotos
	http://localhost/amfphp/gateway.php
	com.philip.codegen


here&#039;s the php file:
require_once &#039;CodeGen.php&#039;;

$schema = &#039;output/test.xml&#039;;
$config = &#039;output/config.xml&#039;;


echo &#039;&#039;;

$codegen = new CodeGen ( $config );
//$codegen-&gt;writeSchema();
$codegen-&gt;generateCode ( $schema );

echo &#039;&#039;;

here&#039;s what I get:

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity &quot;file:///D:/wamp/www/test_codegen/output/test.xml&quot; 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</description>
		<content:encoded><![CDATA[<p>Hey!</p>
<p>I am new to Flex and AMFPHP. I downloaded CodeGen_1.2 but I can&#8217;t seem to get it to work i.e. I&#8217;m getting errors.</p>
<p>Here&#8217;s my config.xml file:</p>
<p>	localhost<br />
	root</p>
<p>	CodeGen<br />
	sportzphotos<br />
	<a href="http://localhost/amfphp/gateway.php" rel="nofollow">http://localhost/amfphp/gateway.php</a><br />
	com.philip.codegen</p>
<p>here&#8217;s the php file:<br />
require_once &#8216;CodeGen.php&#8217;;</p>
<p>$schema = &#8216;output/test.xml&#8217;;<br />
$config = &#8216;output/config.xml&#8217;;</p>
<p>echo &#8221;;</p>
<p>$codegen = new CodeGen ( $config );<br />
//$codegen-&gt;writeSchema();<br />
$codegen-&gt;generateCode ( $schema );</p>
<p>echo &#8221;;</p>
<p>here&#8217;s what I get:</p>
<p>Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity &#8220;file:///D:/wamp/www/test_codegen/output/test.xml&#8221; in D:\wamp\www\test_codegen\library\SchemaReader.php on line 23</p>
<p>Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 91<br />
Generating Flex Main Applcation for sportzphotos</p>
<p>Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 94</p>
<p>Generated Cairngorm Service Locator<br />
Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 97</p>
<p>Generated Cairngorm Model Locator for sportzphotos<br />
Notice: Undefined variable: fieldArray in D:\wamp\www\test_codegen\library\SchemaReader.php on line 100</p>
<p>Generated Cairngorm Controller for CodeGen<br />
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</p>
<p>Warning: fwrite(): supplied argument is not a valid stream resource in D:\wamp\www\test_codegen\library\FileSystemService.php on line 190</p>
<p>Warning: fclose(): supplied argument is not a valid stream resource in D:\wamp\www\test_codegen\library\FileSystemService.php on line 192</p>
<p>I wouls sure like to know what to do to get this working.</p>
<p>Philip</p>
]]></content:encoded>
	</item>
</channel>
</rss>
