2009年5月11日星期一

[fw-mvc] Using Zend_Amf and Flex in Zend framework

Hello all

I am trying to build a web application using the following technologies..

1. Zend framework as the main framework
2. Adobe flex for view layer
3. Doctrine PHP ORM for developing database wrapper objects - model layer

I am having trouble in figuring out how to integrate Zend and Flex using
Zend_Amf. Here is what I have achieved:

1. I have developed a login form in adobe flex. The POST or GET request
generated can be sent to some URL like
http://www.domain.com/controller/action.
2. I have created the designated controller and instantiated the models
objects necessary.

Now I have to access the request being sent from flex. How should I do this?
In the examples that I have Zend_Amf is being used like this....

$server = new Zend_Amf_Server();
$server->setClass('Contact'); // the class containing methods
$server->setClassMap('ContactVO', 'Contacts');
$response = $server->handle();
echo $response;

However, the request object is nowhere mentioned. Can anybody tell what I am
missing?

Thanks and Regards
ShiVik
--
View this message in context: http://www.nabble.com/Using-Zend_Amf-and-Flex-in-Zend-framework-tp23496320p23496320.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: