Symfony / zend integration - blank screen

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:

    // load symfony autoloading first
   parent::initialize();

    // Integrate Zend Framework
 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:

   // No Layout
 $this->setLayout(false);
 // Set MIME Type
 $this->getResponse()->setContentType('application/x-amf; charset='.sfConfig::get('sf_charset'));
 // Disable cause this is a non-html page
 sfConfig::set('sf_web_debug', false);

 // Create AMF Server
 $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 ( ). , . .

+1
1

...

set_include_path()

Zend. - , โ€‹โ€‹ , .

0

All Articles