About.php 670 字节
<?php


namespace app\index\controller;

use app\common\controller\Frontend;

class About extends Frontend
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function _initialize()
    {
        parent::_initialize(); // TODO: Change the autogenerated stub
        $this->view->assign('is_search', 0);
        $this->view->assign('is_active', 5);
        $this->view->assign('title', '关于我们');
    }

    public function index() {
        $about_model = new \app\index\model\About();
        $about = $about_model->where('id',1)->find();
        $this->view->assign('about',$about);
        return $this->view->fetch();
    }
}