Action中能使用接口吗?

浏览:796 发布日期:2013/05/16 分类:求助交流
我在Action中建个
接口
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

请问怎么解决,我是不是哪里弄错了?
最佳答案
评论( 相关
后面还有条评论,点击查看>>