Thinkphp 3.1 创建视图模型时如何构造一个空的字段?

浏览:473 发布日期:2017/07/09 分类:求助交流 关键字: 构造占位字段
protected $viewFields = array(
        'outstore_detail' => array(
            'store_id','supplier_id','product_id',NULL=>'count_in','count','price_in','price'=>'price_out','status'=>'detail_status','flag'=>'detail_flag',
            '_type' => 'LEFT'
            ),
类似于上面的代码,上面的NULL本来是想构造一个字段名count_in的;但是框架解析时会出错,大家知道这里要怎么写吗?
最佳答案
评论( 相关
后面还有条评论,点击查看>>