php yaf框架扩展实践四——业务层

```
if (!true){
return "错误信息";
}
```
```
if (!true){
return array("errno" => "10010", "errmsg" => "错误信息");
}
```
```
if (!true){
throw new \Exception("错误信息", "10010");
}
```
本文转自:[http://www.01happy.com/php-yaf-ext-business/](http://www.01happy.com/php-yaf-ext-business/)
评论区