Helpbuy.php
684 字节
<?php
namespace app\index\controller;
use app\common\controller\Frontend;
class Helpbuy 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', 3);
$this->view->assign('title', '帮买服务');
}
public function index() {
$helpbuy_model = new \app\index\model\Helpbuy();
$helpbuy = $helpbuy_model->where('id',1)->find();
$this->view->assign('helpbuy',$helpbuy);
return $this->view->fetch();
}
}