This is old news, but I just want to make sure everyone has a chance to
present a logical defense for loadInterface() before we execute it in ZF
0.2 ... pun intended (as in kill the function).
Please see the very last section on the coding standards wiki page. I
have not yet received much specific feedback for that last section. Is
everyone comfortable with it?
http://framework.zend.com/wiki/x/PQ
http://framework.zend.com/issues/browse/ZF-329 - reasons to remove
loadInterface()
Also, everyone is always welcome to use the "Add Comment" link on the
wiki pages, including the Coding Standard, so even if you don't feel
comfortable editing the page, please use the comment feature. The final
version of the Coding Standard will appear in the usual place (docbook),
until we have a full docbook-to-wiki-to-docbook conversion process.
Cheers,
Gavin
-------- Original Message --------
Subject: Re: [fw-general] Re: coding standards
Date: Mon, 14 Aug 2006 12:28:40 -0700
From: Gavin Vess <[EMAIL PROTECTED]>
To: [email protected]
There has been confusion over the loadInterface() method in Zend.php.
We believe loadInterface() is not needed, and developers should either
use require() or require_once() when including files, unless an
exception must be caught (e.g. inside a factory method loading a class
to instantiate). In the latter case, the existing loadClass() method works.
I propose removing loadInterface() from Zend.php, and documenting the
above in the manual and coding standards.
I expect this will *break* code using loadInterface().
Cheers,
Gavin