Integrating Flex, AMFPHP and CodeIgniter (also including Value-Objects)
Yesterday i recorded a video tutorial on integrating Flex, AMFPHP and CodeIgniter. This tutorial will walk you through each step of the process. If you have any questions, please post them as comments and i’ll answer them as best i can.
Here is a link to the larger version of the tutorial,
here is a link to the project files and
here is the database dump
| Print article | This entry was posted by Danny Kopping on January 5, 2009 at 5:40 pm, and is filed under ActionScript, Flex, Lessons, PHP, Tools. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
Great tutorial. Thanks for sharing!
about 1 year ago
Hello Danny your page had fallen, but happily and returned to the march, the link code and video downloads are broken.
Could you please re-upload them again? Thanks
about 3 years ago
Very good tutor! Best!
about 3 years ago
Thank you so much!
about 3 years ago
My pleasure mate.
about 2 years ago
As much as I appreciate you putting up the tutorial, there is no way to get the code from the webpage you put in th video where you actually put the required code, other than to download the project files itself and open the required file. A bit too much effort if you just wanna learn how to integrate flex-amfphp-codeigniter.
People will have to pause the video and then read the url and type it the browser to go there. Please put this link into the post itself(or better put the code snippets themselves there):
http://ria-coder.com/blog/integrating-codeigniter-with-amfphp/
about 2 years ago
Hi there
Yes, i agree… When i find the time, i’ll definitely go through the video and grab all the snippets – or better yet, i’ll do a text-only version of this tutorial.
Thanks!
about 1 year ago
Hello Danny your page had fallen, but happily and returned to the march, the link code and video downloads are broken.
Could you please re-upload them again? Thanks
about 2 years ago
Hello,
I don’t get it work. When I compile the flex app the alert says it didn’t work?
I didn’t import the project in flex with php as server type because I don’t use a local server.
The gateway.php on my server says that I don’t use any methods.
I put the amfphp folder include all the folders from codeigniter on the server.
In the service-config file I point to the server off my website.
Can you help me? Or am I asking stupid questions?
Thanks, Wouter from the Netherlands
about 2 years ago
Hi Danny,i can’t see the movie and can’t download the files either..Thanks..
about 2 years ago
whats is the name of the editor
about 2 years ago
That’s great. Hope this can help me.I’m watch it this evening, and maybe come here to ask you some questions,because my English is not very good.
Thanks again,Chris from Beijing.
about 2 years ago
Hi Danny. I’m getting strange error. I have unpacked your’s zip source files to my local webserver. The amfphp app with the class getUser is working correctly. Is getting correct data. But the Test.mxml is outputing “It didn’t work!”. All code is ok in 100%. File services-config.xml is ok. Where can i search for bug? Sorry for my english…
about 1 year ago
Hello I just installed the AMFPHP copy the folder to the root of my server
but gives me an error when I open the route
http://localhost/amfphp/browser
She shows me a window with the error code
(Mx.rpc:: Fault) # 0
error = 0
faultCode = “Client.Error.MessageSend”
faultDetail = “Channel.Connect.Failed NetConnection.Call.BadVersion error”
faultString = “Send failed”
message = “faultCode: Client.Error.MessageSend faultString: ‘Send failed’ faultDetail ‘Channel.Connect.Failed NetConnection.Call.BadVersion error:’”
name = “Error”
rootCause = (Object) # 1
code = “NetConnection.Call.BadVersion”
description = “”
details = “”
level = “error”
Can you please help me I’m going crazy not to do
about 1 year ago
Did you ever get this error figured out? I’m experiencing it right now.
about 1 year ago
about 1 year ago
Hello Danny your page had fallen, but happily and returned to the march, the link code and video downloads are broken.
Could you please re-upload them again? Thank
about 1 year ago
Hi Danny, thanks for your tutorial
I try this solution in my project,but it doesn’t work.
I used CodeIgniter2.0 and AMFPHP1.9.
I tried change the path of Controller.php and Common.php, and I can see my custom service in AMFPHP browser, however when the custom service class extend CI_Controller and the __construct function with { parent::construct(); } in it, the public method in my custom service class never works.
Maybe the reason is the version of CodeIgniter.
Any idea ?
Sorry for my poor english.
about 1 year ago
Hi Jovan
Yes, you might have better luck trying CodeIgniter 1.7.2 or 1.7.3
I haven’t tried this workaround with CodeIgniter 2.0 as of yet
Best of luck
about 1 year ago
Hi, Danny
Sorry for my poor english again.
I tried to understand the source code of CI and AMFPHP, it still doesn’t work. Something wrong in CI 2.0 classes like \system\core\Utf8.php on line 47 $CFG Call to a member function item() on a non-object. I’ll try another way to solve it. Thanks for reply. Have a good day!
about 2 years ago
Hi Wouter
It’s really difficult to diagnose the problem without seeing the setup you have. What sort of error are you getting? Could you give me the error code?
Thanks
about 2 years ago
Hi Ditmar
The editor (i’m assuming you mean “author”) is me, Danny Kopping… If you need to contact me, you can do so at danny@ria-coder.com