自动显示模板出现错误

#1 kaijun18

PHP Notice:  Undefined property: Smarty::$displayed in D:\webwww\产品网站\spthreeone\SpeedPHP\Drivers\Smarty\Smarty.class.php on line 671PHP Notice:  Undefined property: Smarty::$engine in D:\webwww\产品网站\spthreeone\SpeedPHP\Drivers\Smarty\Smarty.class.php on line 671
程序源码无改动,只是设置了:
$spConfig=array(
        'view'=>array(
                'enabled'=>TRUE,
                'config'=>array(
                        'template_dir'=>APP_PATH.'/tpl',
                        'compile_dir'=>APP_PATH.'/tmp',
                        'cache_dir'=>APP_PATH.'/tmp',
                        'left_delimiter'=>'{',
                        'right_delimiter'=>'}',
                        'auto_literal'=>TRUE,
                ),
                'debugging'=>FALSE,
                'engine_name'=>'Smarty',
                'engine_path'=>SP_PATH.'/Drivers/Smarty/Smarty.class.php',
                'auto_ob_start'=>TRUE,
                'auto_display'=>TRUE,
                'auto_display_sep'=>'/',
                'auto_display_suffix'=>'.html',
        )
);

请问我需要做才能继续使用模板自动显示?还是说要放弃这个自动显示的功能?

2017-03-06 14:10:30

#2 jake

上午刚修一个bug,可以重新在github上面下载3.1版源码覆盖试试

2017-03-06 14:41:54

#3 kaijun18

jake 发表于 2017-3-6 14:41
上午刚修一个bug,可以重新在github上面下载3.1版源码覆盖试试
报告大神,我在git上面下载了你最新修复的源码
下来之后还是按照原来的配置
还是出现下面的错误
PHP Notice:  Undefined property: Smarty: : $displayed in D:\webwww\产品网站\spthreeone\SpeedPHP\Drivers\Smarty\Smarty.class.php on line 671

2017-03-06 17:30:25

#4 jake

抱歉,检查到问题了,已经修复https://github.com/SpeedPHP/speedphp/commit/1d7d215d606b6adafb5ea4b3796a9ecceeb14522

重新在github下载吧。

不过最好还是关闭php配置的notice,不然很多时候都会引发一些notice提示的。

2017-03-06 18:02:41