Exemplo n.º 1
0
 /**
  * @desc 展示index.html首页页面模版
  */
 public function index()
 {
     //1.读取模版名
     $arrProTemplateDir = IndexModel::model()->getTemplates();
     $this->smarty->assign('proTemplateDir', $arrProTemplateDir);
     //2.获取网页地址
     $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER["REQUEST_URI"];
     $url = dirname($url) . '/ExcelController.php?r=createCode';
     $this->smarty->assign('url', $url);
     $this->smarty->display(TEMPLATE . 'index.html');
 }