文件名、類名約定
通常,文件名匹配類名,類名採用駝峯命名法。
例:假如有一個類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