zend framework框架小记

框架搭建过程:

1.利用Zend Studio新建 框架时,已有.htaccess 文件,是隐藏的,在public目录下    即URL引导文件

2.pbulic目录下建立index.php 引导文件

3./application/configs/application.ini    基本配置文件

4.默认控制器indexController    首页动作 indexAction

5.index.phtml 模板文件

Zend 编码标准:

1.private protected 属性名称以下划线开始!!

2.常量   全部大写  类中用 const 定义

3.除类外,其余命名用长字符,并能说明函数意图和行为

4.缩进4个空格,而不是一个Tab

5.行长度80个字符最好,最多不超过120!!

6.顶部注释 描述

7.函数方法必须在封装的函数上方注释:参数,返回值,描述

常用组件:

acl auth cache config file layout mail paginator registry

session validate

posted @ 2011-09-21 17:28  xiangzi888  阅读(184)  评论(0编辑  收藏  举报