Maintain.php
860 字节
<?php
namespace app\index\controller;
use app\common\controller\Frontend;
class Maintain 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', 4);
$this->view->assign('title', '产品维修');
}
public function index() {
$maintain_model = new \app\index\model\Maintain();
$maintainer_model = new \app\index\model\Maintainer();
$maintain = $maintain_model->where('id',1)->find();
$maintainer = $maintainer_model->select();
$this->view->assign('maintain',$maintain);
$this->view->assign('maintainer',$maintainer);
return $this->view->fetch();
}
}