thinkphp 在配置设置了'DEFAULT_THEME'  => 'default',默认模板 为什么读取不到action 目录下的default模板  是不是少了什么。谢谢

解决方案 »

  1.   

    模板是在 app/Tpl/controllername/下面的,默认是actionname
      

  2.   

    Tpl才是模板目录吧
    Tpl/default
      

  3.   

    那action/indexaction.class.php 下要怎么输出tpl/default/index/index.html的内容
      

  4.   

    不对吧,'DEFAULT_THEME' => 'default'的意思就是输出app/tpl/default模板的内容。
    比如你有这么个项目-Home。Home下面的Lib/Action/目录下有IndexAction.class.php文件,那么在在浏览器中访问Index/index时模板就是Home/Tpl/default/Index/index.html文件。
    手册上是怎么写的。“php新手入门网”提供手册下载,你可以去下载来看看。http://www.phpnewer.com/index.php/HandBook/index