gilleswittenberg / contact-form
CakePHP 联系表单插件
dev-master
2013-05-28 08:02 UTC
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2024-09-23 14:44:11 UTC
README
安装
[Composer]
将以下内容添加到 composer.json
"require": { "gilleswittenberg/contact-form": "dev-master" }
[手动安装]
- 下载 http://github.com/gilleswittenberg/CakePHP_ContactForm/zipball/master
- 解压下载的 ZIP 文件。
- 将得到的文件夹复制到
APP_DIR/Plugin
- 将刚刚复制的文件夹重命名为
ContactForm
[Git 子模块]
在您的 APP_DIR
中输入
git submodule add git://github.com/gilleswittenberg/CakePHP_ContactForm.git Plugin/ContactForm git submodule init git submodule update
[Git 克隆]
在 APP_DIR/Plugin
目录中输入
git clone git://github.com/gilleswittenberg/CakePHP_ContactForm.git ContactForm
创建模式
运行 cake shell 模式
cake schema create --plugin ContactForm
使用方法
在 APP_DIR/Config/bootstrap.php
中添加
CakePlugin::load('ContactForm', array('bootstrap' => true, 'routes' => true)); Configure::write('ContactForm', array( 'mailTo' => 'mail@example.com', 'sendInControllerAction' => 'true' ));
##待办事项
- 字段验证可配置
- 可配置的闪存消息
- SendMailShell
- 验证码
- 从发送邮件中清除会话
- 提交后禁用表单(JavaScript)
- 允许每个应用程序使用多个不同的表单