Chu*_*ess 0 php cakephp cakephp-1.3 cakephp-1.2
阅读核心并查看几乎所有可用的助手/插件等,我注意到有很多评论.
CakePHP的结构使得确定事物的位置和所做的事情非常简单.是否真的有必要对所有这些代码进行评论?它会使源更混乱还是真的有用?当您查看评论时,您觉得它们有用吗?或者你甚至读过它们?
更新:以下是从CakePHP Core连接管理器获取的注释示例,例如:
/**
* Loads the DataSource class for the given connection name
*
* @param mixed $connName A string name of the connection, as defined in app/config/database.php,
* or an array containing the filename (without extension) and class name of the object,
* to be found in app/models/datasources/ or cake/libs/model/datasources/.
* @return boolean True on success, null on failure or false if the class is already loaded
* @access public
* @static
*/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
458 次 |
| 最近记录: |