我在shopnc框架中的父类里写了一个构造函数,然后子类中的构造函数引用了父类中的构造函数,但没想到出的结果是空白页也没有提示,在没有写之前是有输出结果的,另外其他东西我没有动,这种情况一般是由什么引起的呢
class Control{
static function __construct() {
echo "5555555555555";
}
class BaseHomeControl extends Control { public function __construct(){
parent::__construct();
class Control{
static function __construct() {
echo "5555555555555";
}
class BaseHomeControl extends Control { public function __construct(){
parent::__construct();
__construct() 不能是静态的致命的语法错误!
由于你关闭了 php 的错误显示功能,所以只能是空白页
不要自己给自己找麻烦
再请问一下,是不是加error_reporting(E_ALL);
另外这句话是不是随便放一个页上,因我这个是一个框架,还是说放在框架的什么页面上?
再说 error_reporting(E_ALL); 也是在服务端