Introduction
To fullfill the readers requests, I rewrote the previous flex example, to work without the MATE framework. This application uses "pure" flex 3 technology, to present the usage of the flex remoting with CpAmf plugin.
The example is based on test application for cakeAMF plugin:
https://trac.cakefoundation.org/amf/wiki/tutorial/amf
Thanks to developer(s) of cakeAMF plugin.
Any comments and suggestions are welcome.
The application uses RemoteObject for remoting. It is a very simple "user management" application, which has the following capabilities: retrieving all users, retrieving a particular user by its ID, and inserting new users into the database.
Download
Download the example here.
Chris
Hi
The archive of non Mate example seems to be broken. Could you check it?
Now I hope it will be in correct article :)
Peter Jankovich
I've checked it. It was fine! By mistake it was uploaded as a TAR-GZIP archive. We are Linux/Unix guys, so we tend to use this format over zip :)
I've edited the article, you may now dowload it as a regular zip.
Enjoy!
Chris
Great thanks! :)
Now it's ok
Ced
Hello,
First thanks for all your efforts. It's great.
I am trying your plugin because I am stuck with PHP 5.1.6 at work so no datetime and therefor no zendamf possible and also I am a Cake user. that's what brought me here.
I couldn't find any thing about PHP version. Can you confirm this plugin works with PHP 5.1.6
I am using the non MATE example because I am more of a Cairngorm guy.
I think the cake part is correctly working but I get a "Channel disconnected" on Flex side.
Any idea where that could come from?
Daniel Verner
@Ced
I cannot confirm, that cpamf is working with php 5.1.6, because I only test it with php 5.2+,
but I suggest you the following:
1. check your gateway (it should look like: domain.com/cpamf/gateway - without .php extension at the end)
2. check the service browser is working ( domain.com/cpamf/browser)
3. usually the "channel disconnected" error happens when php code echo something (or when some error occurs)
4. check apache log for errors
If you can find out the problem, please let me know, so I can fix it in the next release.