Hex 发表于 2016-1-19 14:09:41

hzh 发表于 2016-1-15 17:04
我想请问下   ci嵌套smarty    那里面的图片路径和js css路径该怎么写呢?

这个要看你具体是怎么引入的 smarty

hzh 发表于 2016-1-20 14:46:03

什么?

hem 发表于 2016-3-1 10:43:25

Fatal error: Cannot access protected property CI_Output::$final_output in D:\PHP\www\myWorkSpace\News\application\libraries\smarty.php on line 76

我按照步骤来的。。我smarty是2.X的版本。怎么会报这个错

hem 发表于 2016-3-1 10:44:28

hem 发表于 2016-3-1 10:43
Fatal error: Cannot access protected property CI_Output:final_output in D:\PHP\www\myWorkSpace\New ...

Fatal error: Cannot access protected property CI_Output:: $final_output in D:\PHP\www\myWorkSpace\News\application\libraries\smarty.php on line 76

codetolife 发表于 2016-7-8 14:12:49

@Hex 大神,请问CI3.0导入smarty模板之后会报以下的这个NOTICE,我用的php版本是7 smarty版本用的是3.1.29
A PHP Error was encountered

Severity: Notice

Message: Uninitialized string offset: 1

Filename: libs/Smarty.class.php

Line Number: 1181

codetolife 发表于 2016-7-8 14:35:04

已解决

Hex 发表于 2016-7-8 14:36:54

codetolife 发表于 2016-7-8 14:12
@Hex 大神,请问CI3.0导入smarty模板之后会报以下的这个NOTICE,我用的php版本是7 smarty版本用的是3.1.29
...

你确定 smarty 支持 PHP7?

codetolife 发表于 2016-7-8 15:02:11

我验证过了,能支持的,我刚刚只是换了种方法导入smarty模板

Hex 发表于 2016-7-8 15:31:07

codetolife 发表于 2016-7-8 15:02
我验证过了,能支持的,我刚刚只是换了种方法导入smarty模板

那你看看 1181 行是什么呢?这个好像和 CI 关系不大吧。

codetolife 发表于 2016-7-8 18:04:28

我基本都看了,smarty模板文件绝对没出错,所以最主要的 就是Libraries里面的CI_smarty.php这个文件我写错了,但是我最主要是 不会截图,所以问题是已经解决了
页: 1 2 3 4 [5] 6
查看完整版本: CodeIngiter 2.0.x 与 Smarty3 整合的方案