stewen
新手上路
Rank: 1



UID 1081
精华 0
积分 0
帖子 5
翻译 0
原创 0
阅读权限 10
注册 2008-4-27
状态 离线
发表于 2008-4-27 05:13  资料  短消息  加为好友 
照这么说来,smarty没有应用的意义了吗?

顶部
sailershen
新手上路
Rank: 1



UID 943
精华 0
积分 0
帖子 5
翻译 0
原创 0
阅读权限 10
注册 2008-3-27
状态 离线
发表于 2008-5-18 19:46  资料  短消息  加为好友 
请问楼主,一楼最上面的那段代码应该放在什么文件里?放在什么目录下?

顶部
justin
新手上路
Rank: 1



UID 1969
精华 0
积分 0
帖子 2
翻译 0
原创 0
阅读权限 10
注册 2008-8-27
状态 离线
发表于 2008-9-2 09:00  资料  短消息  加为好友 
不會吧,你看他的get和set相關方法沒,錯得那么幼稚

顶部
justin
新手上路
Rank: 1



UID 1969
精华 0
积分 0
帖子 2
翻译 0
原创 0
阅读权限 10
注册 2008-8-27
状态 离线
发表于 2008-9-2 09:02  资料  短消息  加为好友 
不會吧,你看他的get和set相關方法沒,錯得那么幼稚  public function setTemplatePath()
    {
        if (is_readable( $this->_smarty->template_dir ))
        {            
            return $this->_smarty->template_dir;
        }
        throw new Exception('Invalid TemplatePath provided');
    }  
    /**     
     * 设置模板编译路径     
      *     
     * @param string $path The directory to set as the path.     
     * @return void     
     */
    public function setCompilePath()
    {
        if (is_readable( $this->_smarty->compile_dir))
        {            
            return $this->_smarty->compile_dir;
        }
        throw new Exception('Invalid CompilePath provided');
    }
   
    public function getTemplatePath()
    {
        return $this->_smarty->template_dir;
    }

顶部
ab__
新手上路
Rank: 1



UID 1520
精华 0
积分 0
帖子 10
翻译 0
原创 0
阅读权限 10
注册 2008-7-10
状态 离线
发表于 2008-9-5 16:29  资料  短消息  加为好友 
SMARTY是模板类不是MVC吧 我没记得我在SMARTY里看到过C或者M
SMARTY和一些模板类里所表现的 最基本的东西 页面模板文件的标签替换
同时 如果你用了SMARTY以后 你要学习SMARTY独有的页面标签语法规则
所以说 用不用SMARTY看个人喜欢 你用QUICKTEMP也可以啊 而且还不用配置 想怎么换就怎么换呵呵

顶部
 


PHPEye开源社区


当前时区 GMT+8, 现在时间是 2008-10-8 14:59

    Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.037593 second(s), 7 queries , Gzip enabled

清除 Cookies - 联系我们 - PHPEye开源社区 - Archiver