其他都没有
打算2.0 升级 2.1 然后再升到3.1 ,遇到困难很多,
模版内容没有载出进来!!!
public function add()
{
$cate_tree = M("DealCate")->where('is_delete = 0')->findAll();
$cate_tree = D("DealCate")->toFormatTree($cate_tree,'name');
$this->assign("cate_tree",$cate_tree);
$this->assign("new_sort", M("Deal")->where("is_delete=0")->max("sort")+1);
//输出团购城市
$city_list = M("DealCity")->where('is_delete = 0')->findAll();
$city_list = D("DealCity")->toFormatTree($city_list,'name');
$this->assign("city_list",$city_list);
$supplier_list = M("Supplier")->findAll();
$this->assign("supplier_list",$supplier_list);
$goods_type_list = M("GoodsType")->findAll();
$this->assign("goods_type_list",$goods_type_list);
$weight_list = M("WeightUnit")->findAll();
$this->assign("weight_list",$weight_list);
//输出配送方式列表
$delivery_list = M("Delivery")->where("is_effect=1")->findAll();
$this->assign("delivery_list",$delivery_list);
//输出支付方式
$payment_list = M("Payment")->where("is_effect=1")->findAll();
$this->assign("payment_list",$payment_list);
$this->display();
}
最佳答案
		