fastadmin/application/admin/controller/product/Productcar.php

39 lines
923 B
PHP

<?php
namespace app\admin\controller\product;
use app\common\controller\Backend;
use think\Controller;
use think\Request;
/**
* 包车/拼车
*
* @icon fa fa-circle-o
*/
class Productcar extends Backend
{
/**
* ProductCar模型对象
*/
protected $model = null;
public function _initialize()
{
parent::_initialize();
$this->model = model('ProductCar');
$this->view->assign("advancedataList", $this->model->getAdvancedataList());
$this->view->assign("listList", $this->model->getListList());
}
/**
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个方法
* 因此在当前控制器中可不用编写增删改查的代码,如果需要自己控制这部分逻辑
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
*/
}