<?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: Flex and PHP: remoting with WebORB</title>
	<atom:link href="http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/feed/" rel="self" type="application/rss+xml" />
	<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=flex-and-php-remoting-with-weborb</link>
	<description>Web, Mobile, and Rock&#38;Roll</description>
	<lastBuildDate>Sat, 11 Feb 2012 08:46:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-26019</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Wed, 17 Aug 2011 17:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-26019</guid>
		<description>@Mrd

Most likely you have PHP error in your class. try to execute the PHP class method in browser directly and make sure you don&#039;t have an error.

cheers,
Mihai</description>
		<content:encoded><![CDATA[<p>@Mrd</p>
<p>Most likely you have PHP error in your class. try to execute the PHP class method in browser directly and make sure you don&#8217;t have an error.</p>
<p>cheers,<br />
Mihai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mrd</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-26010</link>
		<dc:creator>Mrd</dc:creator>
		<pubDate>Wed, 17 Aug 2011 15:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-26010</guid>
		<description>Hello, Thanks for the post. It was very usefull. Howe ever I had only half luck. I slightly modified the code and added addData($userinfo) which passes a vo object containing user info and it has insert into statements. but I am getting below err 
Error: &quot;Channel disconnected before an acknowledgement was received&quot;

Can you help me how to fix this? I am new to flex</description>
		<content:encoded><![CDATA[<p>Hello, Thanks for the post. It was very usefull. Howe ever I had only half luck. I slightly modified the code and added addData($userinfo) which passes a vo object containing user info and it has insert into statements. but I am getting below err<br />
Error: &#8220;Channel disconnected before an acknowledgement was received&#8221;</p>
<p>Can you help me how to fix this? I am new to flex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Libor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-11698</link>
		<dc:creator>Libor</dc:creator>
		<pubDate>Tue, 10 Aug 2010 10:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-11698</guid>
		<description>Hello,
is there a way to access $GLOBALS from within your method other than require(&#039;globals.ini&#039;) separate file.
Try the following code. I was expecting to get as a return value &quot;my global variable&quot;, but instead, i get NULL.

</description>
		<content:encoded><![CDATA[<p>Hello,<br />
is there a way to access $GLOBALS from within your method other than require(&#8216;globals.ini&#8217;) separate file.<br />
Try the following code. I was expecting to get as a return value &#8220;my global variable&#8221;, but instead, i get NULL.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-8911</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Fri, 26 Feb 2010 09:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-8911</guid>
		<description>@euloge

Yes, you can have this setup. The only thing you need to keep in mind is that when a Flash/Flex application makes a request for data to a server different than the originating one, you need to have a crossdomain.xml policy file on that server.

You can read more about crossdomain.xml files here
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html</description>
		<content:encoded><![CDATA[<p>@euloge</p>
<p>Yes, you can have this setup. The only thing you need to keep in mind is that when a Flash/Flex application makes a request for data to a server different than the originating one, you need to have a crossdomain.xml policy file on that server.</p>
<p>You can read more about crossdomain.xml files here<br />
<a href="http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html" rel="nofollow">http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: euloge</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-8908</link>
		<dc:creator>euloge</dc:creator>
		<pubDate>Fri, 26 Feb 2010 09:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-8908</guid>
		<description>Hi All,

Please i have question concerning deployement of flex application with Weborb and PHP.
I want to know if it is possible to install Weborb and my PHP to another server instead of installing this on the same web server where *.swf files are? 

So in that case i will have tow separated web server, the first with my flex application (user interface) and the other server with Weborb and php code.

Thanks for your help,
Euloge</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>Please i have question concerning deployement of flex application with Weborb and PHP.<br />
I want to know if it is possible to install Weborb and my PHP to another server instead of installing this on the same web server where *.swf files are? </p>
<p>So in that case i will have tow separated web server, the first with my flex application (user interface) and the other server with Weborb and php code.</p>
<p>Thanks for your help,<br />
Euloge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-7137</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Sun, 01 Nov 2009 22:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-7137</guid>
		<description>i have installed weborb on XAMPP in the htdocs
folder the console opens ok and the data management
reads Mysql tables fine, when i add a database 
like the foodAndDrink i get this message from the Data Management
faultCode:Client.Error.DeliveryInDoubt faultString:&#039;Channel disconnected&#039; faultDetail:&#039;Channel disconnected before an acknowledgement was received&#039;

Can you help me please


Regards


Jorge</description>
		<content:encoded><![CDATA[<p>i have installed weborb on XAMPP in the htdocs<br />
folder the console opens ok and the data management<br />
reads Mysql tables fine, when i add a database<br />
like the foodAndDrink i get this message from the Data Management<br />
faultCode:Client.Error.DeliveryInDoubt faultString:&#8217;Channel disconnected&#8217; faultDetail:&#8217;Channel disconnected before an acknowledgement was received&#8217;</p>
<p>Can you help me please</p>
<p>Regards</p>
<p>Jorge</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Tharso</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-6396</link>
		<dc:creator>Paulo Tharso</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-6396</guid>
		<description>please send your email to me.

I like to send a login simple code that NOT works to you help me.</description>
		<content:encoded><![CDATA[<p>please send your email to me.</p>
<p>I like to send a login simple code that NOT works to you help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drg</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-5445</link>
		<dc:creator>drg</dc:creator>
		<pubDate>Tue, 14 Jul 2009 05:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-5445</guid>
		<description>hey i tried the above and am getting a funny error. ideally, you should be able to have folders within WebORB/Services to organize your php classes and such..

so, i have stated a remote object with destination id = &quot;genericdestination&quot; and source = &quot;com.myapp.Login&quot;

when i run the app, i get an error saying: unable to load file C:/.../WebORB/Services/genericdestination.php

apparently, it is looking at the destination id in the services-config.xml file to locate the class with the same name which is weird...

i expected it to look for WebORB/Services/com/myapp/Login.php

any thoughts?</description>
		<content:encoded><![CDATA[<p>hey i tried the above and am getting a funny error. ideally, you should be able to have folders within WebORB/Services to organize your php classes and such..</p>
<p>so, i have stated a remote object with destination id = &#8220;genericdestination&#8221; and source = &#8220;com.myapp.Login&#8221;</p>
<p>when i run the app, i get an error saying: unable to load file C:/&#8230;/WebORB/Services/genericdestination.php</p>
<p>apparently, it is looking at the destination id in the services-config.xml file to locate the class with the same name which is weird&#8230;</p>
<p>i expected it to look for WebORB/Services/com/myapp/Login.php</p>
<p>any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-5286</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Wed, 08 Jul 2009 06:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-5286</guid>
		<description>@vin

I&#039;m sure that you&#039;ll find the solution or advices if you take a look at WebORB website and forum.</description>
		<content:encoded><![CDATA[<p>@vin</p>
<p>I&#8217;m sure that you&#8217;ll find the solution or advices if you take a look at WebORB website and forum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vin</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-5270</link>
		<dc:creator>vin</dc:creator>
		<pubDate>Tue, 07 Jul 2009 20:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-5270</guid>
		<description>Hi there,

I have developed a Flex app with .NET webservices as the
backend. Webservices are deployed beind firewall. How can I access
those webservices from my client side Flex app.

Can I access using proxie using Weborb? If so what is the edition I
need to use. Can any body guide me in this issue?

thanks
vin</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I have developed a Flex app with .NET webservices as the<br />
backend. Webservices are deployed beind firewall. How can I access<br />
those webservices from my client side Flex app.</p>
<p>Can I access using proxie using Weborb? If so what is the edition I<br />
need to use. Can any body guide me in this issue?</p>
<p>thanks<br />
vin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Pacheco</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3622</link>
		<dc:creator>Carlos Pacheco</dc:creator>
		<pubDate>Fri, 24 Apr 2009 16:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3622</guid>
		<description>Hi Mihai. I&#039;m a weborb-php 3.5&#039;s user. When I try to build a model and, in my database exists a VIEW under MySQL, I got a validation error. A primary key is required. How can solve this problem?
Thanks</description>
		<content:encoded><![CDATA[<p>Hi Mihai. I&#8217;m a weborb-php 3.5&#8242;s user. When I try to build a model and, in my database exists a VIEW under MySQL, I got a validation error. A primary key is required. How can solve this problem?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex and PHP: remoting with WebORB : Mihai CORLAN &#171; DevEzine</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3540</link>
		<dc:creator>Flex and PHP: remoting with WebORB : Mihai CORLAN &#171; DevEzine</dc:creator>
		<pubDate>Thu, 23 Apr 2009 01:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3540</guid>
		<description>[...] Go here to read the rest: Flex and PHP: remoting with WebORB : Mihai CORLAN [...]</description>
		<content:encoded><![CDATA[<p>[...] Go here to read the rest: Flex and PHP: remoting with WebORB : Mihai CORLAN [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3420</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 21 Apr 2009 14:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3420</guid>
		<description>Motorro: I tried your method of using:

public function __construct() {
settype($this-&gt;id, “integer”);
}
}

And it works perfectly! Thank you.

How much extra overhead is incurred using this method?</description>
		<content:encoded><![CDATA[<p>Motorro: I tried your method of using:</p>
<p>public function __construct() {<br />
settype($this-&gt;id, “integer”);<br />
}<br />
}</p>
<p>And it works perfectly! Thank you.</p>
<p>How much extra overhead is incurred using this method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: motorro</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3218</link>
		<dc:creator>motorro</dc:creator>
		<pubDate>Thu, 16 Apr 2009 11:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3218</guid>
		<description>2 conor:

1) Yes, if you do the following:
$a = 1;
$a = &quot;1&quot;;
the type of $a is back a string (unfortunately).
As I&#039;ve said the constructor gets called after member initialization - so the type is converted after the data is set. More accurate way will be:

class dataVO {
public $id;
public function convert() {
   $this-&gt;id = intval($this-&gt;id);
}
....
$r = mysql_fetch...
$r-&gt;convert();

}

2) You can use any type cast operation you like for example:

$a = (int)$a;
$a += 0;
settype($a,$type);

Any of that method gives the same result (IMHO)
except that settype gives you the opportunity to perform:

$vars = array (&quot;String&quot;, &quot;123&quot;, &quot;0&quot;);
$types = array (&quot;string&quot;, &quot;integer&quot;, &quot;boolean&quot;);

for ($i = 0; $i &lt; 3; ++$i) {
settype($vars[$i], $types[$i]);
}

PS: The fastest way considered to be $a += 0;</description>
		<content:encoded><![CDATA[<p>2 conor:</p>
<p>1) Yes, if you do the following:<br />
$a = 1;<br />
$a = &#8220;1&#8243;;<br />
the type of $a is back a string (unfortunately).<br />
As I&#8217;ve said the constructor gets called after member initialization &#8211; so the type is converted after the data is set. More accurate way will be:</p>
<p>class dataVO {<br />
public $id;<br />
public function convert() {<br />
   $this-&gt;id = intval($this-&gt;id);<br />
}<br />
&#8230;.<br />
$r = mysql_fetch&#8230;<br />
$r-&gt;convert();</p>
<p>}</p>
<p>2) You can use any type cast operation you like for example:</p>
<p>$a = (int)$a;<br />
$a += 0;<br />
settype($a,$type);</p>
<p>Any of that method gives the same result (IMHO)<br />
except that settype gives you the opportunity to perform:</p>
<p>$vars = array (&#8220;String&#8221;, &#8220;123&#8243;, &#8220;0&#8243;);<br />
$types = array (&#8220;string&#8221;, &#8220;integer&#8221;, &#8220;boolean&#8221;);</p>
<p>for ($i = 0; $i &lt; 3; ++$i) {<br />
settype($vars[$i], $types[$i]);<br />
}</p>
<p>PS: The fastest way considered to be $a += 0;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3159</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3159</guid>
		<description>My understanding of settype is to convert a variable which has a value already rather than to set a variable to a particular type.  So as I understand it, if you set id as an integer as motorro shows above but you subsequently set id as follows:

$id = &quot;1&quot;; 

id is now a string, despite you setting its type to integer.</description>
		<content:encoded><![CDATA[<p>My understanding of settype is to convert a variable which has a value already rather than to set a variable to a particular type.  So as I understand it, if you set id as an integer as motorro shows above but you subsequently set id as follows:</p>
<p>$id = &#8220;1&#8243;; </p>
<p>id is now a string, despite you setting its type to integer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: motorro</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3153</link>
		<dc:creator>motorro</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3153</guid>
		<description>PS: __set override does not work also. At least I have not managed to do it that way.</description>
		<content:encoded><![CDATA[<p>PS: __set override does not work also. At least I have not managed to do it that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: motorro</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-3152</link>
		<dc:creator>motorro</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-3152</guid>
		<description>2Jon:

I&#039;ve used the VO constructor to set data type.
However I&#039;ve found that when using mysql_fetch_object, the constructor gets called after data initialization :O)
Anyway, this approach works and saves data fetching functions from ugliness :O)

class gDataVO {
    public $id;
    public $name;

    public function __construct() {
        settype($this-&gt;id, &quot;integer&quot;);
    }
}</description>
		<content:encoded><![CDATA[<p>2Jon:</p>
<p>I&#8217;ve used the VO constructor to set data type.<br />
However I&#8217;ve found that when using mysql_fetch_object, the constructor gets called after data initialization :O)<br />
Anyway, this approach works and saves data fetching functions from ugliness :O)</p>
<p>class gDataVO {<br />
    public $id;<br />
    public $name;</p>
<p>    public function __construct() {<br />
        settype($this-&gt;id, &#8220;integer&#8221;);<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2843</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Wed, 08 Apr 2009 13:51:54 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2843</guid>
		<description>The type is set based on the context when you set the variable as follows:

//define variable as a string
myvar = &quot;true&quot;;

//define variable as a boolean
myvar = true;</description>
		<content:encoded><![CDATA[<p>The type is set based on the context when you set the variable as follows:</p>
<p>//define variable as a string<br />
myvar = &#8220;true&#8221;;</p>
<p>//define variable as a boolean<br />
myvar = true;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2842</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Wed, 08 Apr 2009 13:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2842</guid>
		<description>Not in PHP, PHP does not support explicit type definition in variable declarations</description>
		<content:encoded><![CDATA[<p>Not in PHP, PHP does not support explicit type definition in variable declarations</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2840</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 08 Apr 2009 12:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2840</guid>
		<description>As I said, I know that I can loop through and assign each variable type manually, but its clumsy at best. I was also just using bool as an example, but in fact amfphp typecasts any number (int, float, bool) as a string.

My question remains: Is there a way to specify the variable type in the VO?</description>
		<content:encoded><![CDATA[<p>As I said, I know that I can loop through and assign each variable type manually, but its clumsy at best. I was also just using bool as an example, but in fact amfphp typecasts any number (int, float, bool) as a string.</p>
<p>My question remains: Is there a way to specify the variable type in the VO?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2780</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Mon, 06 Apr 2009 17:25:24 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2780</guid>
		<description>are you returning the data from the database?

If so, set your value as a boolean in php as follows

 if ( $row-&gt;mybool == 0 ){
  $row-&gt;mybool = false;
 }else{
  $row-&gt;mybool = true;
 }</description>
		<content:encoded><![CDATA[<p>are you returning the data from the database?</p>
<p>If so, set your value as a boolean in php as follows</p>
<p> if ( $row-&gt;mybool == 0 ){<br />
  $row-&gt;mybool = false;<br />
 }else{<br />
  $row-&gt;mybool = true;<br />
 }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2778</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Mon, 06 Apr 2009 16:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2778</guid>
		<description>Is there a way to typecast the values in the php VO? For example, if I send through a boolean field from amfphp to flex, it goes through as &quot;0&quot; or &quot;1&quot; (i.e. strings), whereas a true boolean would be 0 or 1 (i.e. an int).

I know that I could loop through the array in php manually, but this seems a bit clumsy. Is there a way to specify the variable type in the actual php VO?</description>
		<content:encoded><![CDATA[<p>Is there a way to typecast the values in the php VO? For example, if I send through a boolean field from amfphp to flex, it goes through as &#8220;0&#8243; or &#8220;1&#8243; (i.e. strings), whereas a true boolean would be 0 or 1 (i.e. an int).</p>
<p>I know that I could loop through the array in php manually, but this seems a bit clumsy. Is there a way to specify the variable type in the actual php VO?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex and PHP: remoting with SabreAMF : Mihai CORLAN</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2713</link>
		<dc:creator>Flex and PHP: remoting with SabreAMF : Mihai CORLAN</dc:creator>
		<pubDate>Fri, 27 Mar 2009 15:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2713</guid>
		<description>[...] the past months I have written a lot about Flex and PHP remoting using AMFPHP, ZendAMF, and WebORB. However, there is another library, SabreAMF, that can be used to do remoting. This article [...]</description>
		<content:encoded><![CDATA[<p>[...] the past months I have written a lot about Flex and PHP remoting using AMFPHP, ZendAMF, and WebORB. However, there is another library, SabreAMF, that can be used to do remoting. This article [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2453</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Sun, 15 Mar 2009 04:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2453</guid>
		<description>@Tjorriemorrie

I will play a little bit with the ZF and Zend AMF. What would you like to see?

Regarding MVC in the context of Flex and PHP with Zend Framework, here the things are a little bit different compared to &quot;traditional&quot; web apps (HTML).

Flex is a SOA technology. As a result, when you create a Flex application that brings data from the server, you&#039;ve already achieved some MVC: you have a clean separation between the presentation of the data (the Flex client), and the Server side (business logic/persistance layer in DB).

However, usually you go a little bit further, by implementing MVC in the Flex side too, especially with large projects or teams.</description>
		<content:encoded><![CDATA[<p>@Tjorriemorrie</p>
<p>I will play a little bit with the ZF and Zend AMF. What would you like to see?</p>
<p>Regarding MVC in the context of Flex and PHP with Zend Framework, here the things are a little bit different compared to &#8220;traditional&#8221; web apps (HTML).</p>
<p>Flex is a SOA technology. As a result, when you create a Flex application that brings data from the server, you&#8217;ve already achieved some MVC: you have a clean separation between the presentation of the data (the Flex client), and the Server side (business logic/persistance layer in DB).</p>
<p>However, usually you go a little bit further, by implementing MVC in the Flex side too, especially with large projects or teams.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tjorriemorrie</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2363</link>
		<dc:creator>Tjorriemorrie</dc:creator>
		<pubDate>Fri, 13 Mar 2009 06:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2363</guid>
		<description>thanks for the article. However, I&#039;m a php ZF developer, looking to start using flex as the client-side.

Will there be any articles on using the ZF and &#039;adding on&#039; the flex frontside? I like the ZF mvc structure and would like to keep using it in development.

Thanks</description>
		<content:encoded><![CDATA[<p>thanks for the article. However, I&#8217;m a php ZF developer, looking to start using flex as the client-side.</p>
<p>Will there be any articles on using the ZF and &#8216;adding on&#8217; the flex frontside? I like the ZF mvc structure and would like to keep using it in development.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 29 - (Adobe Flex/Flash/AIR/LCDS Blog post recap)</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2277</link>
		<dc:creator>Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 29 - (Adobe Flex/Flash/AIR/LCDS Blog post recap)</dc:creator>
		<pubDate>Wed, 04 Mar 2009 19:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2277</guid>
		<description>[...] Flex and PHP: remoting with WebORB (from Mihai CORLAN) [...]</description>
		<content:encoded><![CDATA[<p>[...] Flex and PHP: remoting with WebORB (from Mihai CORLAN) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alekkus</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2272</link>
		<dc:creator>alekkus</dc:creator>
		<pubDate>Wed, 04 Mar 2009 03:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2272</guid>
		<description>I usually don&#039;t code for people, but only for you this time round. I have not work with DateField itemEditor, so I used a solution provided by http://shigeru-nakagaki.com/flex_samples/DataGrid/DateFieldEditor/DateFieldEditor.html, and integrate that into what you have so far. Everything&#039;s worked fine. I hosted it at

http://alekkus.com/flex3/my_datagrid_date.html

Right-click to get the source codes.</description>
		<content:encoded><![CDATA[<p>I usually don&#8217;t code for people, but only for you this time round. I have not work with DateField itemEditor, so I used a solution provided by <a href="http://shigeru-nakagaki.com/flex_samples/DataGrid/DateFieldEditor/DateFieldEditor.html" rel="nofollow">http://shigeru-nakagaki.com/flex_samples/DataGrid/DateFieldEditor/DateFieldEditor.html</a>, and integrate that into what you have so far. Everything&#8217;s worked fine. I hosted it at</p>
<p><a href="http://alekkus.com/flex3/my_datagrid_date.html" rel="nofollow">http://alekkus.com/flex3/my_datagrid_date.html</a></p>
<p>Right-click to get the source codes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2271</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Tue, 03 Mar 2009 23:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2271</guid>
		<description>I think I need to use getters and setters like you suggested Mihai.  I also believe I need to use these in my VO object class.

Here is my current class:


	[RemoteClass(alias=&quot;VOLoad&quot;)]
	[Bindable]
	public class VOLoad
	{
		public var id:int;
		public var adr:Boolean;
		public var label:String;
		public var loc_street:String;
		public var loc_city:String;
		public var loc_country:String;
		public var dest_street:String;
		public var dest_city:String;
		public var dest_country:String;
		public var start_date:Date;
		public var end_date:Date;
		public var space:int;
		public var weight:int;
		public var description:String;
		public var notes:String;
		public var company_id:int;
	}

When I receive this back from the server I create an arraycollection with the returned objects as follows

myLoadDP = new ArrayCollection(ArrayUtil.toArray(event.result));

then I use this arraycollection as a dataprovider for my datagrid.  I want to get the start_date and end_date fields to render in the dataGrid but also be editable with a dropin itemEditor.  I have and event trigger on the oneditend event on the datagrid to save the data back to the server and this is why I need to send the date back to mysql in the same format I fetched it in.  My application is very similar in function to the one  you created here Mihai, maybe you could add a Date column to this and expand the tutorial?  Pretty please?  ;o)</description>
		<content:encoded><![CDATA[<p>I think I need to use getters and setters like you suggested Mihai.  I also believe I need to use these in my VO object class.</p>
<p>Here is my current class:</p>
<p>	[RemoteClass(alias="VOLoad")]<br />
	[Bindable]<br />
	public class VOLoad<br />
	{<br />
		public var id:int;<br />
		public var adr:Boolean;<br />
		public var label:String;<br />
		public var loc_street:String;<br />
		public var loc_city:String;<br />
		public var loc_country:String;<br />
		public var dest_street:String;<br />
		public var dest_city:String;<br />
		public var dest_country:String;<br />
		public var start_date:Date;<br />
		public var end_date:Date;<br />
		public var space:int;<br />
		public var weight:int;<br />
		public var description:String;<br />
		public var notes:String;<br />
		public var company_id:int;<br />
	}</p>
<p>When I receive this back from the server I create an arraycollection with the returned objects as follows</p>
<p>myLoadDP = new ArrayCollection(ArrayUtil.toArray(event.result));</p>
<p>then I use this arraycollection as a dataprovider for my datagrid.  I want to get the start_date and end_date fields to render in the dataGrid but also be editable with a dropin itemEditor.  I have and event trigger on the oneditend event on the datagrid to save the data back to the server and this is why I need to send the date back to mysql in the same format I fetched it in.  My application is very similar in function to the one  you created here Mihai, maybe you could add a Date column to this and expand the tutorial?  Pretty please?  ;o)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2269</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Tue, 03 Mar 2009 21:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2269</guid>
		<description>I am sorry to keep asking guys, I still cannot solve this.  I need to understand something.  If I send a value object from Zend AMF to Flex with a Number property for the date in Unix time how do I

a: get the dataGrid to render the date as a date instead of the number

b: get the DateField itemEditor to use the rendered date and allow me to save the chosen date back to the Number type</description>
		<content:encoded><![CDATA[<p>I am sorry to keep asking guys, I still cannot solve this.  I need to understand something.  If I send a value object from Zend AMF to Flex with a Number property for the date in Unix time how do I</p>
<p>a: get the dataGrid to render the date as a date instead of the number</p>
<p>b: get the DateField itemEditor to use the rendered date and allow me to save the chosen date back to the Number type</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2263</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Mon, 02 Mar 2009 21:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2263</guid>
		<description>here is your example with my changes, how do I get around the conversion in the itemEditor?

http://d6142393.u89.hosting365.ie/application.rtf</description>
		<content:encoded><![CDATA[<p>here is your example with my changes, how do I get around the conversion in the itemEditor?</p>
<p><a href="http://d6142393.u89.hosting365.ie/application.rtf" rel="nofollow">http://d6142393.u89.hosting365.ie/application.rtf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2262</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Mon, 02 Mar 2009 18:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2262</guid>
		<description>Hi guys, alekkus, I used your convertToDate function to display the unix time date from the server and it worked fine.  My problem now is changing the date.  The date column is using a DateField as an itemEditor but when I click on the field to edit it I get an error saying that it cannot convert the unix time value to a date.

(TypeError: Error #1034: Type Coercion failed: cannot convert 1175001854629 to Date.)

Do I need to write a function for this also?  It seems odd that Flex does not do this automatically since it can display the date.</description>
		<content:encoded><![CDATA[<p>Hi guys, alekkus, I used your convertToDate function to display the unix time date from the server and it worked fine.  My problem now is changing the date.  The date column is using a DateField as an itemEditor but when I click on the field to edit it I get an error saying that it cannot convert the unix time value to a date.</p>
<p>(TypeError: Error #1034: Type Coercion failed: cannot convert 1175001854629 to Date.)</p>
<p>Do I need to write a function for this also?  It seems odd that Flex does not do this automatically since it can display the date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2259</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Mon, 02 Mar 2009 15:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2259</guid>
		<description>Thank you alekkus, I will try it tonight.  I really appreciate your help.</description>
		<content:encoded><![CDATA[<p>Thank you alekkus, I will try it tonight.  I really appreciate your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alekkus</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2258</link>
		<dc:creator>alekkus</dc:creator>
		<pubDate>Mon, 02 Mar 2009 14:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2258</guid>
		<description>@conor

Ok, I can&#039;t copy the source codes here.

Please get it from my server:

http://alekkus.com/download/convert_date_in_datagrid.rtf</description>
		<content:encoded><![CDATA[<p>@conor</p>
<p>Ok, I can&#8217;t copy the source codes here.</p>
<p>Please get it from my server:</p>
<p><a href="http://alekkus.com/download/convert_date_in_datagrid.rtf" rel="nofollow">http://alekkus.com/download/convert_date_in_datagrid.rtf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alekkus</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2257</link>
		<dc:creator>alekkus</dc:creator>
		<pubDate>Mon, 02 Mar 2009 13:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2257</guid>
		<description>@conor

On flex end, use Number data type for your object. Then use labelFunction on the column to convert the timestamp to date. Here&#039;s the source codes:



	



	

	
		
		
	

</description>
		<content:encoded><![CDATA[<p>@conor</p>
<p>On flex end, use Number data type for your object. Then use labelFunction on the column to convert the timestamp to date. Here&#8217;s the source codes:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: conor</title>
		<link>http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/comment-page-1/#comment-2256</link>
		<dc:creator>conor</dc:creator>
		<pubDate>Mon, 02 Mar 2009 11:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/02/18/flex-and-php-remoting-with-weborb/#comment-2256</guid>
		<description>OK alekkus, I will try to get this to work again using UNIX format. 

I am using an array of the returned objects as a dataprovider for a datagrid.  So the server sends the unix timestamp to flex as a number, flex expects a Date.  At what point should the conversion to Date object be done?</description>
		<content:encoded><![CDATA[<p>OK alekkus, I will try to get this to work again using UNIX format. </p>
<p>I am using an array of the returned objects as a dataprovider for a datagrid.  So the server sends the unix timestamp to flex as a number, flex expects a Date.  At what point should the conversion to Date object be done?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

