Hello again:

Well, this time my question is regarding "Inline Documentation" and the MVC
framework. It would be nice to define a standard way of writing the
documentation for Controllers and Models in such a way that e.g. all Actions
that a Controller has are documented in its docblock.

The "B.4.7. Inline Documentation" chapter on the Reference Guide
(http://www.zendframework.com/manual/en/coding-standard.coding-style.html#coding-standards.inline-documentation)
only goes as far as requiring dockblocks for Files, Classes and Functions,
but does not require extended documentation when the Class is a Controller
or a Model. I think it should.

Anybody has suggestions as to how a Controller docblock should look like?

/**
 * Controller in charge of doing this or that
 *
 * Actions: Index, SomeAction, AnotherAction.
 *
 * @copyright  2007 Myself
 * @license    http://www.zend.com/license/3_0.txt   PHP License 3.0
 * @version    Release: @package_version@
 * @link       http://dev.zend.com/package/PackageName
 * @since      Class available since Release 1.2.0
 */

Each Action (function within the Controller Class) would then have its own
docblock documenting what it actually does.

Do I make sense or am I just rambling?

Cheers,


Antonio
-- 
View this message in context: 
http://www.nabble.com/Inline-Documentation-for-Controllers-and-Models-%28MVC%29-tf4514440s16154.html#a12876176
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to