westdc-zf1/application/default/controllers/MapController.php

33 lines
970 B
PHP
Raw Normal View History

2018-06-23 15:23:07 +00:00
<?php
use Helpers\View as view;
class MapController extends Zend_Controller_Action
{
private $limit=10;
function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array())
{
parent::__construct($request, $response, $invokeArgs);
$this->_helper->layout->setLayout('layout-sanji');
}
function preDispatch()
{
$this->db=Zend_Registry::get('db');
$this->view->config = Zend_Registry::get('config');
$this->messenger=$this->_helper->getHelper('FlashMessenger');
$this->view->messages = $this->messenger->getMessages();
$this->view->theme = new Theme();
$this->view->main_nav_pageID = "data";
$this->view->nav = array(
array('link'=>'/','title'=>'首页'),
array('link'=>'/data','title'=>$this->view->config->title->data),
);
}
function indexAction()
{
}
}