Esempio n. 1
0
 public function init()
 {
     parent::init();
     $this->_config = $this->getConfig();
     $this->_serverSoap = new Zend_Soap_Client($this->_config['resources']['view']['urlSoapWsdl']);
     $totalBanners = $this->_serverSoap->receiveMessage('BANNER');
     $util = new Server_Util();
     $SoapBanner = $util->groupArray($totalBanners, 'codtbanner');
     $SoapMusica = $this->_serverSoap->receiveMessage('MUSICA');
     $SoapJuego = $this->_serverSoap->receiveMessage('JUEGO');
     $SoapText = $this->_serverSoap->receiveMessage('TEXT');
     $SoapLink = $this->_serverSoap->receiveMessage('LINK');
     $SoapServicio = $this->_serverSoap->receiveMessage('SERVICIO');
     $SoapBannerMovistar = $this->_serverSoap->receiveMessage('BANNERMOVISTAR');
     $perfil = $this->_getParam('perfil', '5');
     switch ($perfil) {
         case '1':
             $this->forward('basico');
             break;
         case '2':
             $this->forward('basico128');
             break;
         case '3':
             $this->forward('basico240');
             break;
         case '4':
             $this->forward('basico360');
             break;
         case '5':
             $this->forward('avanzado');
             break;
         default:
             $this->forward('basico240');
             break;
     }
     $this->view->SoapMovistarBanner = $SoapBannerMovistar;
     $this->view->SoapBanners = $SoapBanner[0];
     $this->view->SoapMusica = $SoapMusica;
     $this->view->SoapJuego = $SoapJuego;
     $this->view->SoapText = $SoapText;
     $this->view->SoapLink = $SoapLink;
     $this->view->SoapServicio = $SoapServicio;
 }
 public function init()
 {
     parent::init();
 }
Esempio n. 3
0
 public function init()
 {
     parent::init();
     $this->_helper->layout->setLayout('admin/layout-login');
 }