【发布时间】:2012-04-16 00:00:50
【问题描述】:
我需要创建一些基础异常类并从中继承。
我看到了两种方法:
1. Create folder 'Exceptions' in library and use standard autoload mechanism
/library
/Exception/
Base.php
InvalidParameter.php
2. Just declare exception classes in model, that uses it.
有没有更好的更“Zend-ish”的方法?
【问题讨论】:
-
我想说选项 1 已经是 Zend 风格了
标签: php zend-framework exception