I've been facing a strange problem.
I've an application based on zend framework and i need to load this application using IFrame from another domain. While loading i need to pass a value from IFrame to the application based on Zend Framework. I tried it the following way but it's not working. It's giving Page Not Found Exception.
- Created _initRouting() method at bootstrap
- Integrated the application using IFrame
_initRouting()
public function _initRouting()
{
$router = Zend_Controller_Front::getInstance()->getRouter();
$router->addRoute(
'deal',
new Zend_Controller_Router_Route('/deal/:q', array(
'module' => 'default',
'controller' => 'index',
'action' => 'index'
))
);
}
IFrame Integration
<iframe src="http://www.example.com/deal/123" width="1022px" height="710px"></iframe>
Default Module->Index Controller->Index Action
public function indexAction()
{
echo $this->_request->getParam('q');
}
Cant figure out the problem. Your help would be greatly appreciated.