Using the same Flash code I was able to get this working where I just
included the Zend library in a normal file, I wondering if there's
something else I need to do in order to get AMF working so that it
routes through the normal framework.

Here's the code that works

<?php

ini_set( "include_path", ini_get("include_path") . PATH_SEPARATOR .
dirname( dirname( __FILE__ ) ) . "/Zend/library");

require_once( 'Zend/Amf/Server.php' );
require_once( 'Tutorials.php' );

$server = new Zend_Amf_Server();
$server->setClass("Tutorials");

echo( $server->handle() );

?>
On Wed, Apr 7, 2010 at 1:59 PM, Mark Steudel <[email protected]> wrote:
> Ok I know this is a little outside now of Zend, but maybe someone can help:
>
> Here's my test fla:
>
> var gateway:String = "http://domain.com/problems";;
> var connection:NetConnection;
> var responder:Responder;
>
> responder = new Responder(onResult, onFault);
> connection = new NetConnection;
> connection.connect(gateway);
> connection.call("ProblemsController.test", responder);
>
>
> function onResult(result:Object):void {
>      trace('test');
>      trace(String(result));
> }
>
> function onFault(fault:Object):void {
>      test('test2');
>      trace(String(fault.description));
> }
>
> When I compile I don't get any errors and I don't get the BadVersion
> often associated with php errors. Also I don't see any of the
> trace(test*) showing up.
>
> Any thoughts?
>
> MS
> On Wed, Apr 7, 2010 at 12:58 PM, holografix . <[email protected]> wrote:
>> Hi
>> Flsh will understand.
>>
>> Cheers
>> holo
>>
>> 2010/4/7 Mark Steudel <[email protected]>
>>>
>>> I'm playing with the ZMF component and I have the following controller:
>>>
>>> <?php
>>>
>>> class ProblemsController extends Zend_Controller_Action
>>> {
>>>
>>>    public function init()
>>>    {
>>>        /* Initialize action controller here */
>>>    }
>>>
>>>    public function indexAction()
>>>    {
>>>        $server = new Zend_Amf_Server();
>>>                $server->setClass('ProblemsController');
>>>                $response = $server->handle();
>>>                echo $response;
>>>    }
>>>
>>>        public function test()
>>>        {
>>>                return array( 1, 2, 3, 4, 5);
>>>        }
>>> }
>>>
>>>
>>> When I go to:
>>>
>>> domain.com/problems
>>>
>>> I get prompted to download problems (see link below):
>>> http://i44.tinypic.com/w9afif.jpg
>>>
>>> Do I need to adjust apache or something else, or will flash understand.
>>>
>>> In a 1.6 tutorial I watched the video showed that when you hit that
>>> page it should say something like Zend AMF Server Endpoint
>>>
>>> TIA, Mark
>>
>>
>
>
>
> --
>
> -----------------------------------------
> Mark Steudel
> P: 206.375.7244
> [email protected]
>
> . : Work : .
> http://www.mindfulinteractive.com
>
> . : Play : .
> http://www.steudel.org/blog
>



-- 

-----------------------------------------
Mark Steudel
P: 206.375.7244
[email protected]

. : Work : .
http://www.mindfulinteractive.com

. : Play : .
http://www.steudel.org/blog

Reply via email to