Пример #1
0
 /**
  * Called before Zend_Controller_Front enters its dispatch loop.
  *
  * During the dispatch loop, Zend_Controller_Front keeps a
  * Zend_Controller_Request_Abstract object, and uses
  * Zend_Controller_Dispatcher to dispatch the
  * Zend_Controller_Request_Abstract object to controllers/actions.
  *
  * @param  AbstractRequest $request
  * @return void
  */
 public function dispatchLoopStartup(AbstractRequest $request)
 {
     if ($request->isMobileRequest()) {
         Zend_Layout::getMvcInstance()->setLayout('mobile');
     }
 }