/** * Initialize entry * * @return void */ public function init() { $this->_requset = $this->getRequest(); $this->_params = $this->getRequest()->getParams(); $this->_session = Common_Session::getInstance(); $this->_initView(); }
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); }