<?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: Lazy loading classes in Zend Amf w/ addDirectory</title>
	<atom:link href="http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/feed" rel="self" type="application/rss+xml" />
	<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory</link>
	<description>The spoils of the integration of PHP and ActionScript</description>
	<lastBuildDate>Wed, 19 May 2010 07:10:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Vikram Malhotra</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-8081</link>
		<dc:creator>Vikram Malhotra</dc:creator>
		<pubDate>Mon, 14 Dec 2009 09:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-8081</guid>
		<description>Hello Wade

i have been using this addDirectory method for quite time and it has worked quite well. But I have run into a roadblock with this. Consider this snippet:

$server = new Zend_Amf_Server();
$server-&gt;addDirectory( APPLICATION_PATH . &quot;/services/&quot; ); // Adding the services here
$server-&gt;addDirectory( APPLICATION_PATH . &quot;/vo/&quot; ); // Adding the value objects here
echo $server-&gt;handle();

Now the services are mapped like a dream. The problem is in VOs, where I am not able to map the VOs from php to Flex. The reverse works. I followed &lt;a href=&quot;http://www.wadearnold.com/tutorials/zend/classmap/&quot;?this tutorial of yours&lt;/a&gt; and just replaced the classMap with addDirectory. I used the $_explicitType construct in my php VO.

Is there a problem in my code or is there something that needs to be added some somewhere?

Thanks and Regards
Vikram</description>
		<content:encoded><![CDATA[<p>Hello Wade</p>
<p>i have been using this addDirectory method for quite time and it has worked quite well. But I have run into a roadblock with this. Consider this snippet:</p>
<p>$server = new Zend_Amf_Server();<br />
$server-&gt;addDirectory( APPLICATION_PATH . &#8220;/services/&#8221; ); // Adding the services here<br />
$server-&gt;addDirectory( APPLICATION_PATH . &#8220;/vo/&#8221; ); // Adding the value objects here<br />
echo $server-&gt;handle();</p>
<p>Now the services are mapped like a dream. The problem is in VOs, where I am not able to map the VOs from php to Flex. The reverse works. I followed &lt;a href=&quot;http://www.wadearnold.com/tutorials/zend/classmap/&quot;?this tutorial of yours and just replaced the classMap with addDirectory. I used the $_explicitType construct in my php VO.</p>
<p>Is there a problem in my code or is there something that needs to be added some somewhere?</p>
<p>Thanks and Regards<br />
Vikram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jazman</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-2582</link>
		<dc:creator>jazman</dc:creator>
		<pubDate>Wed, 13 May 2009 14:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-2582</guid>
		<description>Hi Wade,
i have a problem with zendamf-flashcs3 on production server
on local server with wamp every think work fine
but on production server i received this error from flash :Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Failed

I have allready :Zend Amf Endpoint (on production server)
these are some PhpInfo :
PHP Version 5.2.5
Apache Version  Apache/2.2.0  
This server is protected with the Suhosin Patch 0.9.6.2
This program makes use of the Zend Scripting Language Engine: v2.2.0

Any Help will be apreciated
thanks</description>
		<content:encoded><![CDATA[<p>Hi Wade,<br />
i have a problem with zendamf-flashcs3 on production server<br />
on local server with wamp every think work fine<br />
but on production server i received this error from flash :Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.Failed</p>
<p>I have allready :Zend Amf Endpoint (on production server)<br />
these are some PhpInfo :<br />
PHP Version 5.2.5<br />
Apache Version  Apache/2.2.0<br />
This server is protected with the Suhosin Patch 0.9.6.2<br />
This program makes use of the Zend Scripting Language Engine: v2.2.0</p>
<p>Any Help will be apreciated<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wadearnold</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-2162</link>
		<dc:creator>wadearnold</dc:creator>
		<pubDate>Thu, 16 Apr 2009 15:22:29 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-2162</guid>
		<description>&lt;a href=&quot;#comment-2160&quot; rel=&quot;nofollow&quot;&gt;@oscaroxy&lt;/a&gt; 1.7.8 build is the most up to date source code. Zend_Amf is open source so if there are optimizations you find just file an improvement patch into the Zend Framework jira issue tracker.</description>
		<content:encoded><![CDATA[<p><a href="#comment-2160" rel="nofollow">@oscaroxy</a> 1.7.8 build is the most up to date source code. Zend_Amf is open source so if there are optimizations you find just file an improvement patch into the Zend Framework jira issue tracker.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscaroxy</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-2160</link>
		<dc:creator>oscaroxy</dc:creator>
		<pubDate>Thu, 16 Apr 2009 14:21:45 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-2160</guid>
		<description>I found another big problem with zend_amf... it is very slow into server of production, while into my machine (local) it work fine and fast. 
Why? Exist a mode for quickly zend? I found many require_once into Zend&#039;s page that delay the entire process ....</description>
		<content:encoded><![CDATA[<p>I found another big problem with zend_amf&#8230; it is very slow into server of production, while into my machine (local) it work fine and fast.<br />
Why? Exist a mode for quickly zend? I found many require_once into Zend&#8217;s page that delay the entire process &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscaroxy</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-933</link>
		<dc:creator>oscaroxy</dc:creator>
		<pubDate>Tue, 10 Feb 2009 10:00:36 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-933</guid>
		<description>I tired to replace every file AMF from svc to my project, but the problem continue.......</description>
		<content:encoded><![CDATA[<p>I tired to replace every file AMF from svc to my project, but the problem continue&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscaroxy</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-932</link>
		<dc:creator>oscaroxy</dc:creator>
		<pubDate>Tue, 10 Feb 2009 09:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-932</guid>
		<description>Thanks for your reply ... how I can download Zend_Amf from the svn repository???? I read only page html and it don&#039;t give me a download button.</description>
		<content:encoded><![CDATA[<p>Thanks for your reply &#8230; how I can download Zend_Amf from the svn repository???? I read only page html and it don&#8217;t give me a download button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wadearnold</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-930</link>
		<dc:creator>wadearnold</dc:creator>
		<pubDate>Mon, 09 Feb 2009 20:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-930</guid>
		<description>&lt;a href=&quot;#comment-927&quot; rel=&quot;nofollow&quot;&gt;@oscaroxy&lt;/a&gt; This was a bug that is checked in and closed but you will either need to wait until the 1.7.4 release or get Zend_Amf from the svn repository. 
http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Amf/</description>
		<content:encoded><![CDATA[<p><a href="#comment-927" rel="nofollow">@oscaroxy</a> This was a bug that is checked in and closed but you will either need to wait until the 1.7.4 release or get Zend_Amf from the svn repository.<br />
<a href="http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Amf/" rel="nofollow">http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Amf/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscaroxy</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-927</link>
		<dc:creator>oscaroxy</dc:creator>
		<pubDate>Mon, 09 Feb 2009 16:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-927</guid>
		<description>I’ve a problem similar to “yemi”:
I’ve put VOAuthor class into a package “business” (either AS3 and PHP) and if I use “$server-&gt;setClassMap(”VOAuthor”, “VOAuthor”);” (without specify package) then Zend work fine, while if I use “var $_explicitType =’VOAuthor’;” (into class) then Zend don’t work fine.

I receive from PHP (php_error.log):

PHP Fatal error: Uncaught exception ‘Zend_Amf_Exception’ with message ‘Unable to parse null body data VOAuthor mapped class is not defined’ in C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php:174
Stack trace:
#0 C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php(125): Zend_Amf_Request-&gt;readBody()
#1 C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php(93): Zend_Amf_Request-&gt;readMessage(Object(Zend_Amf_Parse_InputStream))
#2 C:\wamp\www\provaZendAMF2\Zend\Amf\Request\Http.php(64): Zend_Amf_Request-&gt;initialize(’????????null??/…’)
#3 C:\wamp\www\provaZendAMF2\Zend\Amf\Server.php(365): Zend_Amf_Request_Http-&gt;__construct()
#4 C:\wamp\www\provaZendAMF2\Zend\Amf\Server.php(313): Zend_Amf_Server-&gt;getRequest()
#5 C:\wamp\www\provaZendAMF2\ZendAMF\gateway.php(18): Zend_Amf_Server-&gt;handle()
#6 {main}
thrown in C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php on line 174

I prefer to write $_explicitType =’VOAuthor’; into every business class! Maybe Do it need the package?

In add … why I can’t specify a package? So I can’t write 2 class with self name!

for example I would write business.Utente and transition.Utente in PHP so in RemoteObject into Flex I can write source=”transition.Utente”

Thanks</description>
		<content:encoded><![CDATA[<p>I’ve a problem similar to “yemi”:<br />
I’ve put VOAuthor class into a package “business” (either AS3 and PHP) and if I use “$server-&gt;setClassMap(”VOAuthor”, “VOAuthor”);” (without specify package) then Zend work fine, while if I use “var $_explicitType =’VOAuthor’;” (into class) then Zend don’t work fine.</p>
<p>I receive from PHP (php_error.log):</p>
<p>PHP Fatal error: Uncaught exception ‘Zend_Amf_Exception’ with message ‘Unable to parse null body data VOAuthor mapped class is not defined’ in C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php:174<br />
Stack trace:<br />
#0 C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php(125): Zend_Amf_Request-&gt;readBody()<br />
#1 C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php(93): Zend_Amf_Request-&gt;readMessage(Object(Zend_Amf_Parse_InputStream))<br />
#2 C:\wamp\www\provaZendAMF2\Zend\Amf\Request\Http.php(64): Zend_Amf_Request-&gt;initialize(’????????null??/…’)<br />
#3 C:\wamp\www\provaZendAMF2\Zend\Amf\Server.php(365): Zend_Amf_Request_Http-&gt;__construct()<br />
#4 C:\wamp\www\provaZendAMF2\Zend\Amf\Server.php(313): Zend_Amf_Server-&gt;getRequest()<br />
#5 C:\wamp\www\provaZendAMF2\ZendAMF\gateway.php(18): Zend_Amf_Server-&gt;handle()<br />
#6 {main}<br />
thrown in C:\wamp\www\provaZendAMF2\Zend\Amf\Request.php on line 174</p>
<p>I prefer to write $_explicitType =’VOAuthor’; into every business class! Maybe Do it need the package?</p>
<p>In add … why I can’t specify a package? So I can’t write 2 class with self name!</p>
<p>for example I would write business.Utente and transition.Utente in PHP so in RemoteObject into Flex I can write source=”transition.Utente”</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yemi</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-888</link>
		<dc:creator>yemi</dc:creator>
		<pubDate>Fri, 30 Jan 2009 19:23:14 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-888</guid>
		<description>Hi Wade, I noticed something strange. I setup a test application using the $_explicitType class mapping method for Zend_AMF. When I send an object [like addUser(user)] from flex to PHP i get the disconnected error but when I do a get [like getUser();] on the same object it works fine. I have been on it all week. So I decided to tweak the sample provided by Mihai at: http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-2/#comment-1741 and this is what i figured out.

I commented out:
//$server-&gt;setClassMap(”VOAuthor”, “VOAuthor”);
and added:
public $_explicitType =’VOAuthor’;
to the class VOAuthor in PHP.

… and then the datagrid in the sample throws thesame error when updating (i&#039;e sending an object like addUser(user) to the server won&#039;t work). So I added the $server-&gt;setClassMap to my test application and it worked fine. Am I doing something wrong or missing out something in using the $_explicitType method. I downloaded the latest release of Zend_AMF yesterday but thesame problem. I think my mapping is okay because I can get/receive but not send. Please advise. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Wade, I noticed something strange. I setup a test application using the $_explicitType class mapping method for Zend_AMF. When I send an object [like addUser(user)] from flex to PHP i get the disconnected error but when I do a get [like getUser();] on the same object it works fine. I have been on it all week. So I decided to tweak the sample provided by Mihai at: <a href="http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-2/#comment-1741" rel="nofollow">http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/comment-page-2/#comment-1741</a> and this is what i figured out.</p>
<p>I commented out:<br />
//$server-&gt;setClassMap(”VOAuthor”, “VOAuthor”);<br />
and added:<br />
public $_explicitType =’VOAuthor’;<br />
to the class VOAuthor in PHP.</p>
<p>… and then the datagrid in the sample throws thesame error when updating (i&#8217;e sending an object like addUser(user) to the server won&#8217;t work). So I added the $server-&gt;setClassMap to my test application and it worked fine. Am I doing something wrong or missing out something in using the $_explicitType method. I downloaded the latest release of Zend_AMF yesterday but thesame problem. I think my mapping is okay because I can get/receive but not send. Please advise. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wadearnold</title>
		<link>http://wadearnold.com/blog/flash/lazy-loading-classes-in-zend-amf-w-adddirectory/comment-page-1#comment-735</link>
		<dc:creator>wadearnold</dc:creator>
		<pubDate>Fri, 02 Jan 2009 02:47:16 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=103#comment-735</guid>
		<description>@allen and @leo can you please submit a bug with the minimal amount of AS and PHP code to the zend framework. Like the examples shows you need to be submitting the entire file path to the server (./services/) should not work. If it does I have no idea how... 
$server-&gt;addDirectory(dirname(__FILE__) .&#039;/services/&#039;); 
will do the trick.</description>
		<content:encoded><![CDATA[<p>@allen and @leo can you please submit a bug with the minimal amount of AS and PHP code to the zend framework. Like the examples shows you need to be submitting the entire file path to the server (./services/) should not work. If it does I have no idea how&#8230;<br />
$server-&gt;addDirectory(dirname(__FILE__) .&#8217;/services/&#8217;);<br />
will do the trick.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
