I need to use ZendAMF in a symfony project, and now I'm working on integrating the two.
I have a frontend application with two modules, one of which is the โgatewayโ - the AMF gateway. In my frontend application configuration, I have the following configure functions:
parent::initialize();
require_once('[MY PATH TO ZEND]\Loader.php');
spl_autoload_register(array('Zend_Loader', 'autoload'));
The function executeIndex my gateway actions.class.php looks like this:
$this->setLayout(false);
$this->getResponse()->setContentType('application/x-amf; charset='.sfConfig::get('sf_charset'));
sfConfig::set('sf_web_debug', false);
$server = new Zend_Amf_Server();
$server->setClass('MYCLASS');
echo $server->handle();
return sfView::NONE;
Now, when I try to visit the url for a gateway module or even another module that worked fine, before this attempt, I see only a blank screen, even if the devf symfony file was not loaded. Oddly enough, my symfony logs are also not being updated, which suggests that Synfony is not even โreachedโ.
, - Zend, , , . , , , ( frontendConfiguration, ), Zend_Amf_Server, . , . , , , x-amf.
spl_autoload_register(array('Zend_Loader', 'autoload'));
- , ?
Zend, Zend_Loader Zend_autoLoader ( ). , . .