控制器
require_once '..\..\extend\Hello.World.php';
class Testing
{
public function getTesting()
{
$a = new \HelloWorld();
$b = $a->getHelloWorld();
return $b;
}
}extend\Hello.World.php<?php
class HelloWorld
{
public function getHelloWorld()
{
return 'hello getHelloWorld';
}
}报错main(): Failed opening required '..\..\extend\Hello.World.php'
(include_path='D:\xampp\php\PEAR') 最佳答案