我需要創建一些基本異常類並從中繼承。在Zend Framework中將自定義特定系統異常的位置
我看到兩種方法:
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十歲上下」 的做法?
我想說選項1已經很Zend-ish – bububaba 2012-04-02 10:38:05