ソースを参照

commit php file

Jinhui Zhu 7 年 前
コミット
942c95be8c
2 ファイル変更3 行追加2 行削除
  1. 1 1
      Qii/Application.php
  2. 2 1
      Qii/View/Smarty.php

+ 1 - 1
Qii/Application.php

@@ -348,7 +348,7 @@ class Application
         if ($this->request->controller != $rewrite['controller'] || $this->request->action != $rewrite['action']) {
             $this->request->setRouted(true);
         }
-        $this->request->controllerName($rewrite['controller']);
+        $this->request->setControllerName($rewrite['controller']);
         $this->request->setActionName($rewrite['action']);
         return $this;
     }

+ 2 - 1
Qii/View/Smarty.php

@@ -149,10 +149,11 @@ class Smarty extends \SmartyBC
 	 * @param string $template_dir 模板路径
 	 * @param book $isConfig 是否配置
 	 */
+	/*
 	public function setTemplateDir($template_dir, $isConfig = false)
 	{
 		return parent::setTemplateDir($template_dir, $isConfig = false);
-	}
+	}*/
 	/**
 	 * 检查模板文件名称,只允许使用tpl
 	 * @param string $template 模板文件