接口
IBLL.php
<?php
interface IBLL{
public function test();
}
?>
然后建个
BLLAction.class.php
<?php
class BLLAction implements IBLL {
public function test()
{
//省略
}
}
?>
然后用 IndexAction.class.php调用 BLL.php时
<?php
class IndexAction extends Action {
public function index() {
$bll=new BLLAction();
$bll->test();
}
}
?>
运行出错 Interface 'IBLL' not found

请问怎么解决,我是不是哪里弄错了?
最佳答案