Home
Sign Up
Sign In
sy5587's recent timeline updates
sy5587
V2EX member #346249, joined on 2018-09-01 09:35:35 +08:00
sy5587
提问
技术话题
好玩
工作信息
交易信息
城市相关
Per sy5587's settings, the topics list is hidden
Deals
info, including closed deals, is not hidden
sy5587's recent replies
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
我先一个人静静,感谢大佬们的回复
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
哎没有编程基础自学 PHP 好难啊
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
@
nocrush
哈哈
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
@
leoleoasd
我学的时间不长啊,可以直接学框架吗
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
高版本的 smarty 有问题,低版本的问题更多,折腾一下午,好像是我 run.inc.php 里的自动加载类和 smarty 有冲突
spl_autoload_register("_efc");
function _efc($_className) {
if (substr($_className, -6) == 'Action') {
require ROOT_PATH.'/controller/'.$_className.'.class.php';
} elseif (substr($_className, -5) == 'Model') {
require ROOT_PATH.'/model/'.$_className.'.class.php';
} elseif (substr($_className, -5) == 'Check') {
require ROOT_PATH.'/check/'.$_className.'.class.php';
} else {
require ROOT_PATH.'/public/'.$_className.'.class.php';
}
}
22 0.2376 3951688 class_exists ( ) ...\smarty_internal_templatecompilerbase.php:785
23 0.2377 3951992 spl_autoload_call ( ) ...\smarty_internal_templatecompilerbase.php:785
24 0.2385 3952048 _efc( ) ...\smarty_internal_templatecompilerbase.php:785
Fatal error: require(): Failed opening required 'C:\wamp64\www\php8/public/Smarty_Internal_Compile_Html_Options.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\php8\configs\run.inc.php on line 27
但是我不知道怎么改
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
@
acrazing
我现在照搬也搬不过去啊
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
@
ChoateYao
谢谢你我先记下了,我看的是李炎恢的 PHP 第三季视频,好像是几年前的了,网上也没找到新的,我先把这个视频过一遍吧
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
@
xnode
我的版本就是 5.6.25 啊
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
我现在只能先用着低版本的了,有明白的大佬指点下我,感激不尽
May 26, 2020
Replied to a topic by
sy5587
›
PHP
›
菜鸟又来麻烦各位了
我换了个低版本的 smarty 没事了,高版本单独引入 Smart 类也没事,但是我是在 public 文件夹下用一个 TPL 类 return new Smarty(),然后用 spl_autoload_register()加载 TPL 的方式载入就出现这个错误了
»
More replies by sy5587
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
959 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms ·
UTC 20:50
·
PVG 04:50
·
LAX 13:50
·
JFK 16:50
♥ Do have faith in what you're doing.
❯