亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

A Class is clearly created, but when referenced in another php file, it prompts class not found!
世界只因有你
世界只因有你 2017-06-16 09:18:31
0
3
1034

Error message:

Fatal error: Uncaught Error: Class 'frameworkdbMysqli' not found in C:Users11500DesktopdemoProjecttestTest.php:7 Stack trace: #0 {main} thrown in C:Users11500DesktopdemoProjecttestTest.php on line 7

Project directory:

Class file:

Another php file:

世界只因有你
世界只因有你

reply all(3)
過去多啦不再A夢(mèng)

You didn’t import the file, so PHP certainly doesn’t know where your class definition is = =

require '../db/Mysqli.php';

Add

at the beginning of the test file
漂亮男人

Requires SPL loader

<?php
spl_autoload_register(function ($class) {
    include 'classes/' . $class . '.php';
某草草

For example,
use I want to use Huashan Sword Sect Dugu Nine Swords instead of Huashan Qi Sect Dugu Nine Swords

Of course, the prerequisite for you to use it is that you have it, everything is required

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template