33 lines
970 B
PHP
33 lines
970 B
PHP
<?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()
|
|
{
|
|
|
|
}
|
|
} |