收藏本站 Archiver
    请 后使用快捷导航
    没有账号?入住 CI 中国社区
    楼主: Hex

    CodeIngiter 2.0.x 与 Smarty3 整合的方案

    [复制链接]
    11
    楼主| 发表于 2011年9月7日 15:06:28 | 只看该作者
    jianzhong5137 发表于 2011年9月7日 14:31
    Smarty.php里面
    $CI =& get_instance();
    $CI->output->final_output = $this->fetch($template);

    output类有相应的public的方法来操作 final_output。
    12
    发表于 2011年9月8日 23:46:12 | 只看该作者
    {:soso_e162:}
    13
    发表于 2011年10月7日 17:32:52 | 只看该作者
    谢谢 好文章啊
    14
    发表于 2011年10月10日 15:58:05 | 只看该作者
    这个配置的太复杂了,新手看不懂,我配置了个简单的,谁想要的啊?
    15
    发表于 2011年10月12日 15:06:52 | 只看该作者
    以前我也整合过,不过这是新版本了,学习了
    16
    发表于 2011年10月18日 09:21:17 | 只看该作者
    不错啊。 ci越来越好用了
    17
    发表于 2011年10月31日 00:31:43 | 只看该作者
    jianzhong5137 发表于 2011年9月7日 14:36
    问题已解决

    怎么解决的,我也是这个问题。郁闷
    18
    发表于 2011年10月31日 01:39:47 | 只看该作者
    本帖最后由 sswowo 于 2011年10月31日 01:40 编辑

    Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "D:/www/newway/newway/views/templates/example.tpl" on line 13 "{ci_config name="base_url"}" unknown tag "ci_config"' in D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php:617 Stack trace: #0 D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php(402): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag "ci...', 13) #1 D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_templateparser.php(2366): Smarty_Internal_TemplateCompilerBase->compileTag('ci_config', Array) #2 D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_templateparser.php(3064): Smarty_Internal_Templateparser->yy_r35() #3 D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_templateparser.php(3164): Smarty_Internal_Templateparser->yy_reduce(35) #4 D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_smartytemp in D:\www\newway\system\libs\smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 617


    smarty可以工作了,但示例程序里,有个这个语法错误是怎么回事呢? 会影响正常使用smarty么?
    19
    发表于 2011年11月22日 16:31:09 | 只看该作者

    正是我需要的呢
    十分的谢谢啦
    20
    发表于 2011年12月29日 09:54:11 | 只看该作者
    吖晋 发表于 2011年8月26日 19:34
    不错..虽然我不知道smart是啥.哈哈!!!!!!!

    不是smart 是smarty
    下一页 »
    1 23 4 5 6 下一页
    返回列表
    您需要登录后才可以回帖 登录 | 入住 CI 中国社区

    本版积分规则

    AltStyle によって変換されたページ (->オリジナル) /