Many tutorials suggest that you set up the Zend AMF server directly in the bootstrap or index.php file. But what if you want to build a hybrid application with both Flex and HTML interfaces? In this case it’s better to let the bootstrap file do its usual job of application dispatching, and to make the AMF gateway a controller. Introducing the Gateway Controller Setting up a Zend AMF server inside