🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# Welcome![](# "永久链接至标题") 欢迎来到 Phalcon 框架, 一种崭新的 PHP 框架。我们的使命是给开发者一个开发 web 站点和应用的高级工具,让开发者不用担心框架的性能问题. ### Phalcon 是什么?[](# "永久链接至标题") Phalcon 是开源、全功能栈、使用 C 扩展编写、针对高性能优化的 PHP 5 框架。开发者不需要学习和使用 C 语言的功能, 因为所有的功能都以 PHP 类的方式暴露出来,可以直接使用。Phalcon 也是松耦合的,可以根据项目的需要任意使用其他对象。 Phalcon 不只是为了卓越的性能, 我们的目标是让它更加健壮,拥有更加丰富的功能以及更加简单易于使用! ### 目录[](# "永久链接至标题") - [安装(Installation)](#) - [Windows](#) - [相关指南(Related Guides)](#) - [Linux/Solaris/Mac](#) - [基本要求(Requirements)](#) - [编译(Compilation)](#) - [Mac OS X](#) - [Requirements](#) - [FreeBSD](#) - [安装说明(Installation Notes)](#) - [Apache 安装说明(Apache Installation Notes)](#) - [Nginx 安装说明(Nginx Installation Notes)](#) - [Cherokee 安装说明(Cherokee Installation Notes)](#) - [使用 PHP 内置 web 服务器(Using PHP Built-in webserver)](#) - [教程 1:让我们通过例子来学习(Tutorial 1: Let's learn by example)](#) - [确认安装(Checking your installation)](#) - [创建项目(Creating a project)](#) - [文件结构(File structure)](#) - [优美的 URL(Beautiful URLs)](#) - [引导程序(Bootstrap)](#) - [自动加载(Autoloaders)](#) - [依赖管理(Dependency Management)](#) - [创建控制器(Creating a Controller)](#) - [输出到视图(Sending output to a view)](#) - [设计注册表单(Designing a sign up form)](#) - [创建模型(Creating a Model)](#) - [设置数据库连接(Setting a Database Connection)](#) - [使用模型保存数据(Storing data using models)](#) - [结束语(Conclusion)](#) - [教程 2:Introducing INVO(Tutorial 2: Introducing INVO)](#) - [项目结构(Project Structure)](#) - [路由(Routing)](#) - [配置(Configuration)](#) - [自动加载(Autoloaders)](#) - [Registering services](#) - [Handling the Request](#) - [依赖注入(Dependency Injection)](#) - [Tutorial 3: Securing INVO](#) - [Log into the Application](#) - [Securing the Backend](#) - [Events Management](#) - [Providing an ACL list](#) - [Tutorial 4: Using CRUDs](#) - [Working with the CRUD](#) - [The Search Form](#) - [Performing a Search](#) - [Creating and Updating Records](#) - [Tutorial 5: Customizing INVO](#) - [User Components](#) - [Changing the Title Dynamically](#) - [Tutorial 6: Vkuró](#) - [Project Structure](#) - [Load Classes and Dependencies](#) - [Sign Up](#) - [Conclusion](#) - [教程 7:创建简单的 REST API(Tutorial 7: Creating a Simple REST API)](#) - [定义 API(Defining the API)](#) - [创建应用(Creating the Application)](#) - [创建模型(Creating a Model)](#) - [检索数据(Retrieving Data)](#) - [插入数据(Inserting Data)](#) - [更新数据(Updating Data)](#) - [删除数据(Deleting Data)](#) - [测试应用(Testing our Application)](#) - [结束语(Conclusion)](#) - [示例列表(List of examples)](#) - [依赖注入与服务定位器(Dependency Injection/Service Location)](#) - [实现方法(Our approach)](#) - [使用容器注册服务(Registering services in the Container)](#) - [简单的注册(Simple Registration)](#) - [复杂的注册(Complex Registration)](#) - [服务解疑(Resolving Services)](#) - [共享服务(Shared services)](#) - [单独操作服务(Manipulating services individually)](#) - [通过服务容器实例化类(Instantiating classes via the Service Container)](#) - [自动注入 DI(Automatic Injecting of the DI itself)](#) - [避免服务解析(Avoiding service resolution)](#) - [使用文件组织服务(Organizing services in files)](#) - [使用静态的方式访问注入器(Accessing the DI in a static way)](#) - [注入器默认工厂(Factory Default DI)](#) - [服务名称约定(Service Name Conventions)](#) - [自定义注入器(Implementing your own DI)](#) - [MVC 架构(The MVC Architecture)](#) - [模型(Models)](#) - [视图(Views)](#) - [控制器(Controllers)](#) - [使用控制器(Using Controllers)](#) - [循环调度(Dispatch Loop)](#) - [初始化控制器(Initializing Controllers)](#) - [注入服务(Injecting Services)](#) - [请求与响应(Request and Response)](#) - [会话数据(Session Data)](#) - [在控制器中使用服务(Using Services as Controllers)](#) - [创建基控制器(Creating a Base Controller)](#) - [控制器中的事件(Events in Controllers)](#) - [使用模型(Working with Models)](#) - [创建模型](#) - [公共属性对比设置与取值 Setters/Getters(Public properties vs. Setters/Getters)](#) - [模型放入命名空间(Models in Namespaces)](#) - [理解记录对象(Understanding Records To Objects)](#) - [查找记录(Finding Records)](#) - [模型结果集(Model Resultsets)](#) - [过滤结果集(Filtering Resultsets)](#) - [绑定参数(Binding Parameters)](#) - [获取记录的初始化以及准备(Initializing/Preparing fetched records)](#) - [模型关系(Relationships between Models)](#) - [单向关系(Unidirectional relationships)](#) - [双向关系(Bidirectional relations)](#) - [定义关系(Defining relationships)](#) - [使用关系(Taking advantage of relationships)](#) - [定义关系(Aliasing Relationships)](#) - [魔术方法 Getters 对比显示方法(Magic Getters vs. Explicit methods)](#) - [虚拟外键(Virtual Foreign Keys)](#) - [级联与限制动作(Cascade/Restrict actions)](#) - [生成运算(Generating Calculations)](#) - [Hydration Modes](#) - [创建与更新记录(Creating Updating/Records)](#) - [创建与更新结果判断(Create/Update with Confidence)](#) - [自动生成标识列(Auto-generated identity columns)](#) - [存储关系记录(Storing related records)](#) - [验证信息(Validation Messages)](#) - [事件与事件管理器(Events and Events Manager)](#) - [模型中自定义事件(Implementing Events in the Model's class)](#) - [使用自定义事件管理器(Using a custom Events Manager)](#) - [实现业务逻辑(Implementing a Business Rule)](#) - [验证数据完整性(Validating Data Integrity)](#) - [Avoiding SQL injections](#) - [忽略指定列的数据(Skipping Columns)](#) - [动态更新(Dynamic Update)](#) - [删除记录(Deleting Records)](#) - [验证失败事件(Validation Failed Events)](#) - [行为(Behaviors)](#) - [生成时间戳(Timestampable)](#) - [软删除(SoftDelete)](#) - [创建行为(Creating your own behaviors)](#) - [使用 Traits 实现行为(Using Traits as behaviors)](#) - [独立的列映射(Independent Column Mapping)](#) - [在结果集中操作(Operations over Resultsets)](#) - [更新关联表记录(Updating related records)](#) - [删除关联表记录(Deleting related records)](#) - [记录快照(Record Snapshots)](#) - [设置模式(Pointing to a different schema)](#) - [设置多个数据库(Setting multiple databases)](#) - [记录底层 SQL 语句(Logging Low-Level SQL Statements)](#) - [分析 SQL 语句(Profiling SQL Statements)](#) - [注入服务到模型(Injecting services into Models)](#) - [禁用或启用特性(Disabling/Enabling Features)](#) - [独立的组件(Stand-Alone component)](#) - [模型元数据(Models Meta-Data)](#) - [缓存元数据(Caching Meta-Data)](#) - [元数据策略(Meta-Data Strategies)](#) - [数据库内部策略(Database Introspection Strategy)](#) - [注释策略(Annotations Strategy)](#) - [自定义元数据(Manual Meta-Data)](#) - [事务管理(Model Transactions)](#) - [自定义事务(Manual Transactions)](#) - [隐含的事务(Implicit Transactions)](#) - [单独的事务(Isolated Transactions)](#) - [Phalcon 查询语言(Phalcon Query Language (PHQL))](#) - [范例(Usage Example)](#) - [创建 PHQL 查询(Creating PHQL Queries)](#) - [选取记录(Selecting Records)](#) - [结果类型(Result Types)](#) - [连接(Joins)](#) - [聚合(Aggregations)](#) - [条件(Conditions)](#) - [插入数据(Inserting Data)](#) - [更新数据(Updating Data)](#) - [删除数据(Deleting Data)](#) - [使用查询构建器创建查询(Creating queries using the Query Builder)](#) - [绑定参数(Bound Parameters)](#) - [禁止使用字面值(Disallow literals in PHQL)](#) - [转义保留字(Escaping Reserved Words)](#) - [PHQL 生命周期(PHQL Lifecycle)](#) - [使用原生 SQL(Using Raw SQL)](#) - [注意事项(Troubleshooting)](#) - [缓存对象关系映射(Caching in the ORM)](#) - [缓存结果集(Caching Resultsets)](#) - [重写 find 与 findFirst 方法(Overriding find/findFirst)](#) - [强制缓存(Forcing Cache)](#) - [缓存 PHQL 查询(Caching PHQL Queries)](#) - [可重用的相关记录(Reusable Related Records)](#) - [缓存相关记录(Caching Related Records)](#) - [递归缓存相关记录(Caching Related Records Recursively)](#) - [基于条件的缓存(Caching based on Conditions)](#) - [缓存 PHQL 查询计划(Caching of PHQL planning)](#) - [对象文档映射 ODM (Object-Document Mapper)](#) - [创建模型(Creating Models)](#) - [理解文档对象(Understanding Documents To Objects)](#) - [模型中使用命名空间(Models in Namespaces)](#) - [设置连接(Setting a Connection)](#) - [查找文档(Finding Documents)](#) - [聚合(Aggregations)](#) - [创建和更新记录(Creating Updating/Records)](#) - [验证信息(Validation Messages)](#) - [验证事件和事件管理(Validation Events and Events Manager)](#) - [实现业务规则(Implementing a Business Rule)](#) - [验证数据完整性(Validating Data Integrity)](#) - [删除记录(Deleting Records)](#) - [验证失败事件(Validation Failed Events)](#) - [固有 Id 和 用户主键(Implicit Ids vs. User Primary Keys)](#) - [设置多个数据库(Setting multiple databases)](#) - [注入服务到模型(Injecting services into Models)](#) - [使用视图(Using Views)](#) - [集成视图到控制器(Integrating Views with Controllers)](#) - [分层渲染(Hierarchical Rendering)](#) - [使用模版(Using Templates)](#) - [渲染级别控制(Control Rendering Levels)](#) - [关闭渲染级别(Disabling render levels)](#) - [选择视图(Picking Views)](#) - [关闭视图(Disabling the view)](#) - [简单渲染(Simple Rendering)](#) - [使用局部模版(Using Partials)](#) - [控制器传值给视图(Transfer values from the controller to views)](#) - [在视图中使用模型(Using models in the view layer)](#) - [缓存视图片段(Caching View Fragments)](#) - [模版引擎(Template Engines)](#) - [创建模版引擎(Creating your own Template Engine Adapter)](#) - [替换模版引擎(Changing the Template Engine)](#) - [注入服务到视图(Injecting services in View)](#) - [独立的组件(Stand-Alone Component)](#) - [分层渲染(Hierarchical Rendering)](#) - [简单渲染(Simple Rendering)](#) - [视图事件(View Events)](#) - [视图助手(View Helpers)](#) - [文档类型(Document Type of Content)](#) - [生成链接(Generating Links)](#) - [创建表单(Creating Forms)](#) - [使用助手生成表单控件(Helpers to Generate Form Elements)](#) - [使用选择框(Making Select Boxes)](#) - [设置 HTML 属性(Assigning HTML attributes)](#) - [设置助手的值(Setting Helper Values)](#) - [通过控制器(From Controllers)](#) - [通过请求(From the Request)](#) - [直接设置值(Specifying values directly)](#) - [动态设置文档标题(Changing dynamically the Document Title)](#) - [静态内容助手(Static Content Helpers)](#) - [图片(Images)](#) - [样式表(Stylesheets)](#) - [脚本(Javascript)](#) - [HTML5 对象(HTML5 elements - generic HTML helper)](#) - [标签服务(Tag Service)](#) - [创建助手(Creating your own helpers)](#) - [资源文件管理(Assets Management)](#) - [添加资源(Adding Resources)](#) - [本地与远程资源(Local/Remote resources)](#) - [集合(Collections)](#) - [前缀(Prefixes)](#) - [压缩与过滤(Minification/Filtering)](#) - [内置过滤器(Built-In Filters)](#) - [自定义过滤器(Custom Filters)](#) - [自定义输出(Custom Output)](#) - [Volt 模版引擎(Volt: Template Engine)](#) - [简介(Introduction)](#) - [启用 Vlot(Activating Volt)](#) - [基本用法(Basic Usage)](#) - [变量(Variables)](#) - [过滤器(Filters)](#) - [注释(Comments)](#) - [流程控制列表(List of Control Structures)](#) - [循环语句 For](#) - [循环控制(Loop Controls)](#) - [条件判断语句 If](#) - [循环上下文(Loop Context)](#) - [赋值(Assignments)](#) - [表达式(Expressions)](#) - [字面值(Literals)](#) - [数组(Arrays)](#) - [算术运算(Math)](#) - [比较运算(Comparisons)](#) - [逻辑运算(Logic)](#) - [其他操作(Other Operators)](#) - [测试运算(Tests)](#) - [宏定义(Macros)](#) - [使用标签助手(Using Tag Helpers)](#) - [函数(Functions)](#) - [视图集成(View Integration)](#) - [包含(Include)](#) - [模版的继承(Template Inheritance)](#) - [多重继承(Multiple Inheritance)](#) - [自动编码模式(Autoescape mode)](#) - [配置 Volt 引擎(Setting up the Volt Engine)](#) - [扩展 Volt(Extending Volt)](#) - [函数(Functions)](#) - [过滤器(Filters)](#) - [扩展(Extensions)](#) - [缓存视图片段(Caching view fragments)](#) - [注入服务到模版(Inject Services into a Template)](#) - [独立的组件(Stand-alone component)](#) - [外部资源(External Resources)](#) - [MVC 应用(MVC Applications)](#) - [单模块或多模块应用(Single or Multi Module Applications)](#) - [单模块(Single Module)](#) - [多模块(Multi Module)](#) - [理解默认行为(Understanding the default behavior)](#) - [手动启动(Manual bootstrapping)](#) - [应用事件(Application Events)](#) - [外部资源(External Resources)](#) - [路由(Routing)](#) - [定义路由(Defining Routes)](#) - [参数名称(Parameters with Names)](#) - [短语法(Short Syntax)](#) - [混合使用数组和短语法(Mixing Array and Short Syntax)](#) - [路由到模块(Routing to Modules)](#) - [限制 HTTP 请求传入方式(HTTP Method Restrictions)](#) - [使用转换(Using convertions)](#) - [路由分组(Groups of Routes)](#) - [匹配路由(Matching Routes)](#) - [路由命名(Naming Routes)](#) - [范例(Usage Examples)](#) - [默认行为(Default Behavior)](#) - [设置默认路由(Setting the default route)](#) - [没有找到路径(Not Found Paths)](#) - [设置默认路径(Setting default paths)](#) - [处理结尾额外的斜杆(Dealing with extra/trailing slashes)](#) - [匹配回调函数(Match Callbacks)](#) - [限制主机名(Hostname Constraints)](#) - [URI 来源(URI Sources)](#) - [测试路由(Testing your routes)](#) - [注解路由(Annotations Router)](#) - [注册路由实例(Registering Router instance)](#) - [自定义路由(Implementing your own Router)](#) - [调度控制器(Dispatching Controllers)](#) - [循环调度(The Dispatch Loop)](#) - [循环调度事件(Dispatch Loop Events)](#) - [转发到其他动作(Forwarding to other actions)](#) - [准备参数(Preparing Parameters)](#) - [获取参数(Getting Parameters)](#) - [准备行动(Preparing actions)](#) - [转换动作名(Camelize action names)](#) - [删除遗留的扩展名(Remove legacy extensions)](#) - [注入模型实例(Inject model instances)](#) - [处理 Not-Found 错误(Handling Not-Found Exceptions)](#) - [自定义调度器(Implementing your own Dispatcher)](#) - [微应用(Micro Applications)](#) - [创建微应用(Creating a Micro Application)](#) - [定义路由(Defining routes)](#) - [路由参数(Routes with Parameters)](#) - [起始路由(Starting Route)](#) - [重写规则(Rewrite Rules)](#) - [处理响应(Working with Responses)](#) - [重定向(Making redirections)](#) - [根据路由生成 URL(Generating URLs for Routes)](#) - [与依赖注入的交互(Interacting with the Dependency Injector)](#) - [处理Not-Found(Not-Found Handler)](#) - [微应用中的模型(Models in Micro Applications)](#) - [微应用中的事件(Micro Application Events)](#) - [中间件事件(Middleware events)](#) - [使用控制器处理(Using Controllers as Handlers)](#) - [返回响应(Returning Responses)](#) - [渲染视图(Rendering Views)](#) - [Error Handling](#) - [相关资源(Related Sources)](#) - [使用命名空间(Working with Namespaces)](#) - [设置框架(Setting up the framework)](#) - [控制器加入命名空间(Controllers in Namespaces)](#) - [模型加入命名空间(Models in Namespaces)](#) - [事件管理器(Events Manager)](#) - [使用示例(Usage Example)](#) - [创建组件触发事件(Creating components that trigger Events)](#) - [事件传播与取消(Event Propagation/Cancellation)](#) - [侦听器优先级(Listener Priorities)](#) - [收集响应(Collecting Responses)](#) - [自定义事件管理器(Implementing your own EventsManager)](#) - [Request Environment](#) - [获取值(Getting Values)](#) - [控制器中访问请求(Accessing the Request from Controllers)](#) - [文件上传(Uploading Files)](#) - [使用头信息(Working with Headers)](#) - [返回响应(Returning Responses)](#) - [使用头部信息(Working with Headers)](#) - [重定向(Making Redirections)](#) - [HTTP 缓存(HTTP Cache)](#) - [设置过期时间(Setting an Expiration Time)](#) - [Cache-Control](#) - [E-Tag](#) - [Cookie 管理(Cookies Management)](#) - [基本使用(Basic Usage)](#) - [Cookie 的加密和解密(Encryption/Decryption of Cookies)](#) - [生成 URL 和 路径(Generating URLs and Paths)](#) - [设置站点基地址(Setting a base URI)](#) - [生成 URI(Generating URIs)](#) - [没有伪静态状态下的生成 URL(Producing URLs without Mod-Rewrite)](#) - [Volt 中生成 URL(Volt Producing URLs from Volt)](#) - [静态 URI 与 动态 URI(Static vs. Dynamic URIs)](#) - [自定义 URL 生成器(Implementing your own URL Generator)](#) - [闪存消息(Flashing Messages)](#) - [适配器(Adapters)](#) - [使用(Usage)](#) - [输出信息(Printing Messages)](#) - [绝对刷送与会话(Implicit Flush vs. Session)](#) - [使用 Session 存储数据(Storing data in Session)](#) - [启动会话(Starting the Session)](#) - [Session 的存储与读取(Storing/Retrieving data in Session)](#) - [Sessions 的删除和销毁(Removing/Destroying Sessions)](#) - [隔离不同应用的会话数据(Isolating Session Data between Applications)](#) - [会话袋(Session Bags)](#) - [组件的持久数据(Persistent Data in Components)](#) - [自定义适配器(Implementing your own adapters)](#) - [过滤与清理(Filtering and Sanitizing)](#) - [清理数据(Sanitizing data)](#) - [在控制器中使用清理(Sanitizing from Controllers)](#) - [过滤动作参数(Filtering Action Parameters)](#) - [过滤数据(Filtering data)](#) - [内置过滤器类型(Types of Built-in Filters)](#) - [创建过滤器(Creating your own Filters)](#) - [复杂的过滤与清理(Complex Sanitizing and Filtering)](#) - [自定义过滤器(Implementing your own Filter)](#) - [上下文编码(Contextual Escaping)](#) - [HTML 编码(Escaping HTML)](#) - [HTML 属性编码(Escaping HTML Attributes)](#) - [URL 编码(Escaping URLs)](#) - [CSS 编码(Escaping CSS)](#) - [Javascript 编码(Escaping Javascript)](#) - [验证(Validation)](#) - [初始化验证(Initializing Validation)](#) - [验证器(Validators)](#) - [验证信息(Validation Messages)](#) - [过滤数据(Filtering of Data)](#) - [验证事件(Validation Events)](#) - [取消验证(Cancelling Validations)](#) - [Avoid validate empty values](#) - [表单(Forms)](#) - [初始化表单(Initializing forms)](#) - [验证(Validation)](#) - [过滤(Filtering)](#) - [设置用户选项(Setting User Options)](#) - [表单与实体(Forms + Entities)](#) - [表单控件(Form Elements)](#) - [事件回调(Event Callbacks)](#) - [渲染表单(Rendering Forms)](#) - [创建表单控件(Creating Form Elements)](#) - [表单管理(Forms Manager)](#) - [外部资源(External Resources)](#) - [读取配置(Reading Configurations)](#) - [文件适配器(File Adapters)](#) - [原生数组(Native Arrays)](#) - [读取 INI 文件(Reading INI Files)](#) - [合并配置(Merging Configurations)](#) - [分页(Pagination)](#) - [数据适配器(Data Adapters)](#) - [示例(Examples)](#) - [适配器使用(Adapters Usage)](#) - [页面属性(Page Attributes)](#) - [自定义适配器(Implementing your own adapters)](#) - [使用缓存提高性能(Improving Performance with Cache)](#) - [什么情况下使用缓存?(When to implement cache?)](#) - [缓存行为(Caching Behavior)](#) - [缓存输出片段(Caching Output Fragments)](#) - [缓存任意数据(Caching Arbitrary Data)](#) - [文件后端存储器例子(File Backend Example)](#) - [Memcached 后端存储器例子(Memcached Backend Example)](#) - [查询缓存(Querying the cache)](#) - [删除缓存数据(Deleting data from the cache)](#) - [检查缓存是否存在(Checking cache existence)](#) - [有效期(Lifetime)](#) - [多级缓存(Multi-Level Cache)](#) - [前端适配器(Frontend Adapters)](#) - [自定义前端适配器(Implementing your own Frontend adapters)](#) - [后端适配器(Backend Adapters)](#) - [自定义后端适配器(Implementing your own Backend adapters)](#) - [文件后端存储器选项(File Backend Options)](#) - [Memcached 后端存储器选项(Memcached Backend Options)](#) - [APC 后端存储器选项(APC Backend Options)](#) - [Mongo 后端存储器选项(Mongo Backend Options)](#) - [XCache 后端存储器选项(XCache Backend Options)](#) - [安全(Security)](#) - [密码散列(Password Hashing)](#) - [防止跨站点请求伪造攻击(Cross-Site Request Forgery (CSRF) protection)](#) - [设置组件(Setting up the component)](#) - [外部资源(External Resources)](#) - [Encryption/Decryption](#) - [基本使用](#) - [加密选项(Encryption Options)](#) - [提供 Base64(Base64 Support)](#) - [配置加密服务(Setting up an Encryption service)](#) - [访问控制列表 ACL(Access Control Lists ACL)](#) - [创建 ACL(Creating an ACL)](#) - [添加角色(Adding Roles to the ACL)](#) - [添加资源(Adding Resources)](#) - [定义访问控制(Defining Access Controls)](#) - [查询 ACL(Querying an ACL)](#) - [角色继承(Roles Inheritance)](#) - [序列化 ACL 列表(Serializing ACL lists)](#) - [ACL 事件(ACL Events)](#) - [自定义适配器(Implementing your own adapters)](#) - [多语言支持(Multi-lingual Support)](#) - [适配器(Adapters)](#) - [组件的使用(Component Usage)](#) - [自定义适配器(Implementing your own adapters)](#) - [Universal Class Loader](#) - [注册命名空间(Registering Namespaces)](#) - [注册前缀(Registering Prefixes)](#) - [注册文件夹(Registering Directories)](#) - [注册类名(Registering Classes)](#) - [额外的扩展名(Additional file extensions)](#) - [修改当前策略(Modifying current strategies)](#) - [安全层(Security Layer)](#) - [自动加载事件(Autoloading Events)](#) - [注意事项(Troubleshooting)](#) - [日志记录(Logging)](#) - [适配器(Adapters)](#) - [创建日志(Creating a Log)](#) - [事务(Transactions)](#) - [使用多个处理程序进行日志记录(Logging to Multiple Handlers)](#) - [信息格式(Message Formatting)](#) - [行格式化处理(Line Formatter)](#) - [自定义格式处理(Implementing your own formatters)](#) - [适配器(Adapters)](#) - [数据流日志记录器(Stream Logger)](#) - [文件日志记录器(File Logger)](#) - [Syslog 日志记录器(Syslog Logger)](#) - [FirePHP 日志记录器(FirePHP Logger)](#) - [自定义适配器(Implementing your own adapters)](#) - [注释解析器(Annotations Parser)](#) - [读取注释(Reading Annotations)](#) - [注释类型(Types of Annotations)](#) - [实际使用(Practical Usage)](#) - [注释开启缓存(Cache Enabler with Annotations)](#) - [Private/Public areas with Annotations](#) - [选择渲染模版(Choose the template to render)](#) - [注释适配器(Annotations Adapters)](#) - [自定义适配器(Implementing your own adapters)](#) - [外部资源(External Resources)](#) - [命令行应用(Command Line Applications)](#) - [结构(Structure)](#) - [创建引导(Creating a Bootstrap)](#) - [任务(Tasks)](#) - [处理动作参数(Processing action parameters)](#) - [链中运行任务(Running tasks in a chain)](#) - [队列(Queueing)](#) - [将任务加入队列(Putting Jobs into the Queue)](#) - [检索信息(Retrieving Messages)](#) - [数据库抽象层(Database Abstraction Layer)](#) - [数据库适配器(Database Adapters)](#) - [自定义适配器(Implementing your own adapters)](#) - [数据库“方言”](#) - [自定义“方言”(Implementing your own dialects)](#) - [连接数据库(Connecting to Databases)](#) - [设置额外的 PDO 选项(Setting up additional PDO options)](#) - [查找行(Finding Rows)](#) - [绑定参数(Binding Parameters)](#) - [插入、更新、删除行(Inserting/Updating/Deleting Rows)](#) - [事务与嵌套事务(Transactions and Nested Transactions)](#) - [数据库事件(Database Events)](#) - [分析 SQL 语句(Profiling SQL Statements)](#) - [记录 SQL 语句(Logging SQL Statements)](#) - [自定义日志记录器(Implementing your own Logger)](#) - [获取数据库表与视图信息(Describing Tables/Views)](#) - [创建/修改/删除表](#) - [创建数据库表(Creating Tables)](#) - [修改数据库表(Altering Tables)](#) - [删除数据库表(Dropping Tables)](#) - [国际化(Internationalization)](#) - [匹配最佳的区域设置(Find out best available Locale)](#) - [基于区域设置格式化信息(Formatting messages based on Locale)](#) - [特定区域设置的字符串比较(Locale-Sensitive comparison)](#) - [音译(Transliteration)](#) - [数据库迁移(Database Migrations)](#) - [图解导出(Schema Dumping)](#) - [迁移类剖析(Migration Class Anatomy)](#) - [定义列(Defining Columns)](#) - [定义索引(Defining Indexes)](#) - [定义关系(Defining References)](#) - [创建迁移类(Writing Migrations)](#) - [执行迁移(Running Migrations)](#) - [调试应用程序(Debugging Applications)](#) - [捕获异常(Catching Exceptions)](#) - [调试组件(Debug component)](#) - [反射与内省(Reflection and Introspection)](#) - [使用 XDebug(Using XDebug)](#) - [Phalcon 开发工具(Phalcon Developer Tools)](#) - [下载(Download)](#) - [安装(Installation)](#) - [获取可用的命令(Getting Available Commands)](#) - [生成项目框架(Generating a Project Skeleton)](#) - [生成控制器(Generating Controllers)](#) - [数据库配置(Preparing Database Settings)](#) - [生成模型(Generating Models)](#) - [生成基本的 CRUD(Scaffold a CRUD)](#) - [工具的 Web 界面(Web Interface to Tools)](#) - [集成工具到 PhpStorm(Integrating Tools with PhpStorm IDE)](#) - [结束语(Conclusion)](#) - [提高性能:下一步该做什么?(Increasing Performance: What's next?)](#) - [关于服务端(Profile on the Server)](#) - [关于 XDebug(Profiling with XDebug)](#) - [关于 Xhprof(Profiling with Xhprof)](#) - [关于 SQL 语句(Profiling SQL Statements)](#) - [关于客户端(Profile on the Client)](#) - [(使用Chrome/Firefox进行性能分析)Profile with Chrome/Firefox](#) - [Yahoo! YSlow](#) - [使用Speed Trace进行性能分析(Profile with Speed Tracer)](#) - [使用最新的 PHP 版本(Use a recent PHP version)](#) - [使用 PHP 字节码缓存(Use a PHP Bytecode Cache)](#) - [将可能发生阻塞的操作放到后台运行(Do blocking work in the background)](#) - [Google Page Speed](#) - [单元测试(Unit testing)](#) - [整合 PHPunit 到 phalcon(Integrating PHPunit with phalcon)](#) - [PHPunit 辅助文件(The PHPunit helper file)](#) - [PHPunit.xml 文件(PHPunit.xml file)](#) - [简单的单元测试(Sample unit test)](#) - [API Indice](#) - [Abstract class **Phalcon\Acl**](#) - [Constants](#) - [Abstract class **Phalcon\Acl\Adapter**](#) - [Methods](#) - [Class **Phalcon\Acl\Adapter\Memory**](#) - [Methods](#) - [Class **Phalcon\Acl\Exception**](#) - [Methods](#) - [Class **Phalcon\Acl\Resource**](#) - [Methods](#) - [Class **Phalcon\Acl\Role**](#) - [Methods](#) - [Abstract class **Phalcon\Annotations\Adapter**](#) - [Methods](#) - [Class **Phalcon\Annotations\Adapter\Apc**](#) - [Methods](#) - [Class **Phalcon\Annotations\Adapter\Files**](#) - [Methods](#) - [Class **Phalcon\Annotations\Adapter\Memory**](#) - [Methods](#) - [Class **Phalcon\Annotations\Adapter\Xcache**](#) - [Methods](#) - [Class **Phalcon\Annotations\Annotation**](#) - [Methods](#) - [Class **Phalcon\Annotations\Collection**](#) - [Methods](#) - [Class **Phalcon\Annotations\Exception**](#) - [Methods](#) - [Class **Phalcon\Annotations\Reader**](#) - [Methods](#) - [Class **Phalcon\Annotations\Reflection**](#) - [Methods](#) - [Class **Phalcon\Assets\Collection**](#) - [Methods](#) - [Class **Phalcon\Assets\Exception**](#) - [Methods](#) - [Class **Phalcon\Assets\Filters\Cssmin**](#) - [Methods](#) - [Class **Phalcon\Assets\Filters\Jsmin**](#) - [Methods](#) - [Class **Phalcon\Assets\Filters\None**](#) - [Methods](#) - [Class **Phalcon\Assets\Inline**](#) - [Methods](#) - [Class **Phalcon\Assets\Inline\Css**](#) - [Methods](#) - [Class **Phalcon\Assets\Inline\Js**](#) - [Methods](#) - [Class **Phalcon\Assets\Manager**](#) - [Methods](#) - [Class **Phalcon\Assets\Resource**](#) - [Methods](#) - [Class **Phalcon\Assets\Resource\Css**](#) - [Methods](#) - [Class **Phalcon\Assets\Resource\Js**](#) - [Methods](#) - [Abstract class **Phalcon\Cache\Backend**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Apc**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\File**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Libmemcached**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Memcache**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Memory**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Mongo**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Redis**](#) - [Methods](#) - [Class **Phalcon\Cache\Backend\Xcache**](#) - [Methods](#) - [Class **Phalcon\Cache\Exception**](#) - [Methods](#) - [Class **Phalcon\Cache\Frontend\Base64**](#) - [Methods](#) - [Class **Phalcon\Cache\Frontend\Data**](#) - [Methods](#) - [Class **Phalcon\Cache\Frontend\Igbinary**](#) - [Methods](#) - [Class **Phalcon\Cache\Frontend\Json**](#) - [Methods](#) - [Class **Phalcon\Cache\Frontend\None**](#) - [Methods](#) - [Class **Phalcon\Cache\Frontend\Output**](#) - [Methods](#) - [Class **Phalcon\Cache\Multiple**](#) - [Methods](#) - [Class **Phalcon\Cli\Router\Route**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Config**](#) - [Methods](#) - [Class **Phalcon\Config\Adapter\Ini**](#) - [Methods](#) - [Class **Phalcon\Config\Adapter\Json**](#) - [Methods](#) - [Class **Phalcon\Config\Adapter\Php**](#) - [Methods](#) - [Class **Phalcon\Config\Adapter\Yaml**](#) - [Methods](#) - [Class **Phalcon\Config\Exception**](#) - [Methods](#) - [Class **Phalcon\Crypt**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Crypt\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Db**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Db\Adapter**](#) - [Methods](#) - [Abstract class **Phalcon\Db\Adapter\Pdo**](#) - [Methods](#) - [Class **Phalcon\Db\Adapter\Pdo\Mysql**](#) - [Methods](#) - [Class **Phalcon\Db\Adapter\Pdo\Oracle**](#) - [Methods](#) - [Class **Phalcon\Db\Adapter\Pdo\Postgresql**](#) - [Methods](#) - [Class **Phalcon\Db\Adapter\Pdo\Sqlite**](#) - [Methods](#) - [Class **Phalcon\Db\Column**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Db\Dialect**](#) - [Methods](#) - [Class **Phalcon\Db\Dialect\Oracle**](#) - [Methods](#) - [Class **Phalcon\Db\Dialect\Postgresql**](#) - [Methods](#) - [Class **Phalcon\Db\Dialect\Sqlite**](#) - [Methods](#) - [Class **Phalcon\Db\Exception**](#) - [Methods](#) - [Class **Phalcon\Db\Index**](#) - [Methods](#) - [Class **Phalcon\Db\Profiler**](#) - [Methods](#) - [Class **Phalcon\Db\Profiler\Item**](#) - [Methods](#) - [Class **Phalcon\Db\RawValue**](#) - [Methods](#) - [Class **Phalcon\Db\Reference**](#) - [Methods](#) - [Class **Phalcon\Db\Result\Pdo**](#) - [Methods](#) - [Class **Phalcon\Debug**](#) - [Methods](#) - [Class **Phalcon\Debug\Dump**](#) - [Methods](#) - [Class **Phalcon\Debug\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Dispatcher**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Escaper**](#) - [Methods](#) - [Class **Phalcon\Escaper\Exception**](#) - [Methods](#) - [Class **Phalcon\Events\Event**](#) - [Methods](#) - [Class **Phalcon\Events\Exception**](#) - [Methods](#) - [Class **Phalcon\Events\Manager**](#) - [Methods](#) - [Class **Phalcon\Exception**](#) - [Methods](#) - [Class **Phalcon\Filter**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Filter\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Flash**](#) - [Methods](#) - [Class **Phalcon\Flash\Direct**](#) - [Methods](#) - [Class **Phalcon\Flash\Exception**](#) - [Methods](#) - [Class **Phalcon\Flash\Session**](#) - [Methods](#) - [Abstract class **Phalcon\Forms\Element**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Check**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Date**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Email**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\File**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Hidden**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Numeric**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Password**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Radio**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Select**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Submit**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\Text**](#) - [Methods](#) - [Class **Phalcon\Forms\Element\TextArea**](#) - [Methods](#) - [Class **Phalcon\Forms\Exception**](#) - [Methods](#) - [Class **Phalcon\Forms\Form**](#) - [Methods](#) - [Class **Phalcon\Forms\Manager**](#) - [Methods](#) - [Class **Phalcon\Http\Cookie**](#) - [Methods](#) - [Class **Phalcon\Http\Cookie\Exception**](#) - [Methods](#) - [Class **Phalcon\Http\Request**](#) - [Methods](#) - [Class **Phalcon\Http\Request\Exception**](#) - [Methods](#) - [Class **Phalcon\Http\Request\File**](#) - [Methods](#) - [Class **Phalcon\Http\Response**](#) - [Methods](#) - [Class **Phalcon\Http\Response\Cookies**](#) - [Methods](#) - [Class **Phalcon\Http\Response\Exception**](#) - [Methods](#) - [Class **Phalcon\Http\Response\Headers**](#) - [Methods](#) - [Class **Phalcon\Image**](#) - [Constants](#) - [Abstract class **Phalcon\Image\Adapter**](#) - [Methods](#) - [Class **Phalcon\Image\Adapter\Imagick**](#) - [Methods](#) - [Class **Phalcon\Image\Exception**](#) - [Methods](#) - [Class **Phalcon\Kernel**](#) - [Methods](#) - [Class **Phalcon\Loader**](#) - [Methods](#) - [Class **Phalcon\Loader\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Logger**](#) - [Constants](#) - [Abstract class **Phalcon\Logger\Adapter**](#) - [Methods](#) - [Class **Phalcon\Logger\Adapter\File**](#) - [Methods](#) - [Class **Phalcon\Logger\Adapter\Firephp**](#) - [Methods](#) - [Class **Phalcon\Logger\Adapter\Stream**](#) - [Methods](#) - [Class **Phalcon\Logger\Adapter\Syslog**](#) - [Methods](#) - [Class **Phalcon\Logger\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Logger\Formatter**](#) - [Methods](#) - [Class **Phalcon\Logger\Formatter\Firephp**](#) - [Methods](#) - [Class **Phalcon\Logger\Formatter\Json**](#) - [Methods](#) - [Class **Phalcon\Logger\Formatter\Line**](#) - [Methods](#) - [Class **Phalcon\Logger\Formatter\Syslog**](#) - [Methods](#) - [Class **Phalcon\Logger\Item**](#) - [Methods](#) - [Class **Phalcon\Logger\Multiple**](#) - [Methods](#) - [Class **Phalcon\Mvc\Application**](#) - [Methods](#) - [Class **Phalcon\Mvc\Application\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Collection**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Collection\Behavior**](#) - [Methods](#) - [Class **Phalcon\Mvc\Collection\Behavior\SoftDelete**](#) - [Methods](#) - [Class **Phalcon\Mvc\Collection\Behavior\Timestampable**](#) - [Methods](#) - [Class **Phalcon\Mvc\Collection\Document**](#) - [Methods](#) - [Class **Phalcon\Mvc\Collection\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\Collection\Manager**](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Controller**](#) - [Methods](#) - [Class **Phalcon\Mvc\Dispatcher**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Dispatcher\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\Micro**](#) - [Methods](#) - [Class **Phalcon\Mvc\Micro\Collection**](#) - [Methods](#) - [Class **Phalcon\Mvc\Micro\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\Micro\LazyLoader**](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Model**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Model\Behavior**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Behavior\SoftDelete**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Behavior\Timestampable**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Criteria**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Manager**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Message**](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Model\MetaData**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Apc**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Files**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Libmemcached**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Memcache**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Memory**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Session**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Strategy\Annotations**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Strategy\Introspection**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\MetaData\Xcache**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Query**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Query\Builder**](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Model\Query\Lang**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Query\Status**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Relation**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Model\Resultset**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Resultset\Complex**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Resultset\Simple**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Row**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Transaction**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Transaction\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Transaction\Failed**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Transaction\Manager**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\ValidationFailed**](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\Model\Validator**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Email**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Exclusionin**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Inclusionin**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Ip**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Numericality**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\PresenceOf**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Regex**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\StringLength**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Uniqueness**](#) - [Methods](#) - [Class **Phalcon\Mvc\Model\Validator\Url**](#) - [Methods](#) - [Class **Phalcon\Mvc\Router**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Router\Annotations**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Mvc\Router\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\Router\Group**](#) - [Methods](#) - [Class **Phalcon\Mvc\Router\Route**](#) - [Methods](#) - [Class **Phalcon\Mvc\Url**](#) - [Methods](#) - [Class **Phalcon\Mvc\Url\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\User\Component**](#) - [Methods](#) - [Class **Phalcon\Mvc\User\Module**](#) - [Methods](#) - [Class **Phalcon\Mvc\User\Plugin**](#) - [Methods](#) - [Class **Phalcon\Mvc\View**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Mvc\View\Engine**](#) - [Methods](#) - [Class **Phalcon\Mvc\View\Engine\Php**](#) - [Methods](#) - [Class **Phalcon\Mvc\View\Engine\Volt**](#) - [Methods](#) - [Class **Phalcon\Mvc\View\Engine\Volt\Compiler**](#) - [Methods](#) - [Class **Phalcon\Mvc\View\Exception**](#) - [Methods](#) - [Class **Phalcon\Mvc\View\Simple**](#) - [Methods](#) - [Abstract class **Phalcon\Paginator\Adapter**](#) - [Methods](#) - [Class **Phalcon\Paginator\Adapter\Model**](#) - [Methods](#) - [Class **Phalcon\Paginator\Adapter\NativeArray**](#) - [Methods](#) - [Class **Phalcon\Paginator\Adapter\QueryBuilder**](#) - [Methods](#) - [Class **Phalcon\Paginator\Exception**](#) - [Methods](#) - [Class **Phalcon\Queue\Beanstalk**](#) - [Methods](#) - [Class **Phalcon\Queue\Beanstalk\Job**](#) - [Methods](#) - [Final class **Phalcon\Registry**](#) - [Methods](#) - [Class **Phalcon\Security**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Security\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Session**](#) - [Abstract class **Phalcon\Session\Adapter**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Session\Adapter\Files**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Session\Adapter\Libmemcached**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Session\Adapter\Memcache**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Session\Bag**](#) - [Methods](#) - [Class **Phalcon\Session\Exception**](#) - [Methods](#) - [Class **Phalcon\Tag**](#) - [Constants](#) - [Methods](#) - [Class **Phalcon\Tag\Exception**](#) - [Methods](#) - [Abstract class **Phalcon\Tag\Select**](#) - [Methods](#) - [Abstract class **Phalcon\Text**](#) - [Constants](#) - [Methods](#) - [Abstract class **Phalcon\Translate**](#) - [Abstract class **Phalcon\Translate\Adapter**](#) - [Methods](#) - [Class **Phalcon\Translate\Adapter\Csv**](#) - [Methods](#) - [Class **Phalcon\Translate\Adapter\Gettext**](#) - [Methods](#) - [Class **Phalcon\Translate\Adapter\NativeArray**](#) - [Methods](#) - [Class **Phalcon\Translate\Exception**](#) - [Methods](#) - [Class **Phalcon\Validation**](#) - [Methods](#) - [Class **Phalcon\Validation\Exception**](#) - [Methods](#) - [Class **Phalcon\Validation\Message**](#) - [Methods](#) - [Class **Phalcon\Validation\Message\Group**](#) - [Methods](#) - [Abstract class **Phalcon\Validation\Validator**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Alnum**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Alpha**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Between**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Confirmation**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Digit**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Email**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\ExclusionIn**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\File**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Identical**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\InclusionIn**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Numericality**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\PresenceOf**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Regex**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\StringLength**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Uniqueness**](#) - [Methods](#) - [Class **Phalcon\Validation\Validator\Url**](#) - [Methods](#) - [Class **Phalcon\Version**](#) - [Constants](#) - [Methods](#) - [Interface **Phalcon\Acl\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Acl\ResourceInterface**](#) - [Methods](#) - [Interface **Phalcon\Acl\RoleInterface**](#) - [Methods](#) - [Interface **Phalcon\Annotations\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Annotations\ReaderInterface**](#) - [Methods](#) - [Interface **Phalcon\Assets\FilterInterface**](#) - [Methods](#) - [Interface **Phalcon\Cache\BackendInterface**](#) - [Methods](#) - [Interface **Phalcon\Cache\FrontendInterface**](#) - [Methods](#) - [Interface **Phalcon\CryptInterface**](#) - [Methods](#) - [Interface **Phalcon\Db\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Db\ColumnInterface**](#) - [Methods](#) - [Interface **Phalcon\Db\DialectInterface**](#) - [Methods](#) - [Interface **Phalcon\Db\IndexInterface**](#) - [Methods](#) - [Interface **Phalcon\Db\ReferenceInterface**](#) - [Methods](#) - [Interface **Phalcon\Db\ResultInterface**](#) - [Methods](#) - [Interface **Phalcon\DiInterface**](#) - [Methods](#) - [Interface **Phalcon\DispatcherInterface**](#) - [Methods](#) - [Interface **Phalcon\EscaperInterface**](#) - [Methods](#) - [Interface **Phalcon\Events\EventsAwareInterface**](#) - [Methods](#) - [Interface **Phalcon\Events\ManagerInterface**](#) - [Methods](#) - [Interface **Phalcon\FilterInterface**](#) - [Methods](#) - [Interface **Phalcon\Filter\UserFilterInterface**](#) - [Methods](#) - [Interface **Phalcon\FlashInterface**](#) - [Methods](#) - [Interface **Phalcon\Forms\ElementInterface**](#) - [Methods](#) - [Interface **Phalcon\Http\RequestInterface**](#) - [Methods](#) - [Interface **Phalcon\Http\Request\FileInterface**](#) - [Methods](#) - [Interface **Phalcon\Http\ResponseInterface**](#) - [Methods](#) - [Interface **Phalcon\Http\Response\CookiesInterface**](#) - [Methods](#) - [Interface **Phalcon\Http\Response\HeadersInterface**](#) - [Methods](#) - [Interface **Phalcon\Image\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Logger\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Logger\FormatterInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\CollectionInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Collection\BehaviorInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Collection\ManagerInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\ControllerInterface**](#) - [Interface **Phalcon\Mvc\DispatcherInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\EntityInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Micro\CollectionInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Micro\MiddlewareInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\ModelInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\BehaviorInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\CriteriaInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\ManagerInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\MessageInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\MetaDataInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\MetaData\StrategyInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\QueryInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\Query\BuilderInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\Query\StatusInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\RelationInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\ResultInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\ResultsetInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\TransactionInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\Transaction\ManagerInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Model\ValidatorInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\ModuleDefinitionInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\RouterInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Router\GroupInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\Router\RouteInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\UrlInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\ViewBaseInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\ViewInterface**](#) - [Methods](#) - [Interface **Phalcon\Mvc\View\EngineInterface**](#) - [Methods](#) - [Interface **Phalcon\Paginator\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Session\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Session\BagInterface**](#) - [Methods](#) - [Interface **Phalcon\Translate\AdapterInterface**](#) - [Methods](#) - [Interface **Phalcon\Validation\MessageInterface**](#) - [Methods](#) - [Interface **Phalcon\Validation\ValidatorInterface**](#) - [Methods](#) - [授权(License)](#) ### 其他格式[](# "永久链接至标题") - [PDF](http://media.readthedocs.org/pdf/phalcon-php-framework-documentation/latest/phalcon-php-framework-documentation.pdf) - [HTML in one Zip](http://media.readthedocs.org/htmlzip/phalcon-php-framework-documentation/latest/phalcon-php-framework-documentation.zip) - [ePub](http://media.readthedocs.org/epub/phalcon-php-framework-documentation/latest/phalcon-php-framework-documentation.epub) | - [索引](# "总目录") - [下一页](# "安装(Installation)") |