Example #1
0
 /**
  * @brief 订单打印模板修改
  */
 public function print_template()
 {
     //获取根目录路径
     $path = IWeb::$app->getBasePath() . 'views/' . $this->theme . '/order';
     //获取 购物清单模板
     $ifile_shop = new IFile($path . '/shop_template.html');
     $arr['ifile_shop'] = $ifile_shop->read();
     //获取 配货单模板
     $ifile_pick = new IFile($path . "/pick_template.html");
     $arr['ifile_pick'] = $ifile_pick->read();
     $this->setRenderData($arr);
     $this->redirect('print_template');
 }