Ejemplo n.º 1
0
Archivo: Action.php Proyecto: eryx/labs
 /**
  * Initialize entry
  *
  * @return void
  */
 public function init()
 {
     $this->_requset = $this->getRequest();
     $this->_params = $this->getRequest()->getParams();
     $this->_session = Common_Session::getInstance();
     $this->_initView();
 }
Ejemplo n.º 2
0
 public function indexAction()
 {
     $type = $this->_request->getParam('type');
     $cfg = Common_Config::get("cm/{$type}.ini")->index->index;
     if (isset($cfg->session)) {
         $this->view->session = Common_Session::getInstance();
     }
     foreach ($cfg->datax as $k => $v) {
         $items = Cm_Model_Datax::getFeed($v->query);
         $block = APPLICATION_PATH . '/modules/cm/views/blocks/' . $v->block;
         $out = Cm_Model_Datax::getBlock($block, $items);
         $this->view->{'datax_' . $k} = $out;
     }
     $this->render('layout/simple', null, true);
 }