【CakePHP1.3】_文件名、类名约定
2013-02-19 09:08
351 查看
文件名、类名约定
通常,文件名匹配类名,类名采用驼峰命名法。例:假如有一个类MyNiftyClass,那么它一定在 MyNiftyClass.php文件中
The Controller class KissesAndHugsController would be found in a file named KissesAnd- HugsController.php • The Component class MyHandyComponent would be found in a file named MyHandyComponent. php • The Model class OptionValue would be found in a file named OptionValue.php • The Behavior class EspeciallyFunkableBehavior would be found in a file named EspeciallyFunkableBehavior. php • The View class SuperSimpleView would be found in a file named SuperSimpleView.php • The Helper class BestEverHelper would be found in a file named BestEverHelper.php
相关文章推荐
- 【CakePHP1.3】_控制器约定
- 【CakePHP1.3】_模型和数据库的一些约定
- 【CakePHP1.3】_视图约定及命名小结
- PHP框架中集成Smarty3模板引擎(一) ------ CakePHP 1.3
- Java的类名与文件名必须一致
- 【CakePHP1.3】_CakePHP注意事项
- java类名文件名规范
- Java中类名与文件名的关系
- 【CakePHP1.3】_CakePHP Conventions
- 【CakePHP1.3】_ACL和auth
- 【Exception】查看异常出现在具体的文件名/类名/方法名/具体行号
- 1.1 学习之初&1.2 约定&1.3 认识Linux
- Java中类名与文件名的关系
- AMFPHP中,类名必须和php文件名相同,类中的方法名不能和类名相同。否则会出错。
- java中类名与文件名的关系
- Java中类名与文件名的关系
- CakePHP 2.x CookBook 中文版 第三章 入门 之 约定
- Java获取文件名/类名/函数名/行号的方法
- 1.1 学习之初 1.2 约定 1.3 认识Linux 1.4 安装虚拟机 1.5 安装centos