I am using ZendAMF for remote access.
<?php
error_reporting(E_ALL | E_STRICT);
require_once "Zend/Amf/Server.php";
require_once "process.php";
$server = new Zend_Amf_Server();
$server->setClass("process");
$server->setClassMap("Session", "Session");
echo($server->handle());
?>
My question is: I have an ActionScript class session and a PHP class session, but it is not displayed yet. I have some doubts ... maybe stupid ...
If the file name of the PHP class must be the same name as the class name, since it is not necessary, but when displayed it carries an estimate of the cost.
As you will call these mapped objects inside your flex application. My approach is listed below, but not sure if it is correct or not.
$ server-> setClassMap ("Session", "Session"); This is the PHP and Flex class in the above function.
Also my PHP session class is inside the include directory, I must indicate that somewhere or ZendAMf will take care of this.
Flex code.
var userSession:Session = new Session();
sessionHold.text = userSession.userid;
Thanks.