Jun 26, 2009

CpAmf NON MATE flex example

by: Daniel Verner

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.

See also

CpAmf php example.
CpAmf flex MATE example.

Share this post:

5 comments

Chris

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 :)

Jul 17, 2009 (14:06:14) - #1
Peter Jankovich

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!

Jul 17, 2009 (20:42:32) - #2
Chris

Chris

Great thanks! :)

Now it's ok

Jul 19, 2009 (17:27:00) - #3
Ced

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?

Nov 23, 2009 (11:12:40) - #4
Daniel Verner

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.

Nov 23, 2009 (12:33:39) - #5

Your reply

You can't use HTML, but URLs will be automatically linkyfied and Your e-mail address will never be published. We reserve the right to moderate Your comments. Gravatar service is used for avatars. Upload yours at www.gravatar.com.

All fields marked with an asterisk (*) are required!

Remaining characters

security image