YII-Note2
来源:互联网 发布:linux 解压缩 编辑:程序博客网 时间:2024/04/29 08:24
CREATE
TABLE
Employee (
id MEDIUMINT UNSIGNED
NOT
NULL
AUTO_INCREMENT
PRIMARY
KEY
,
departmentId TINYINT UNSIGNED
NOT
NULL
COMMENT
"CONSTRAINT FOREIGN KEY (departmentId) REFERENCES Department(id)"
,
firstName
VARCHAR
(20)
NOT
NULL
,
lastName
VARCHAR
(40)
NOT
NULL
,
email
VARCHAR
(60)
NOT
NULL
,
ext
SMALLINT
UNSIGNED
NULL
,
hireDate
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
leaveDate DATETIME
NULL
,
INDEX
name
(lastName, firstName),
INDEX
(departmentId)
)
use Gii to create the fundamental Model, View, and Controller files required by the application
Next, under the modules section of the returned array, you should enable Gii. Gii is a Web-based tool that you’ll use to generate Models, Views, and Controllers for the application. To enable Gii, just remove the comment tags—/* and */—that surround this code:
'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'SECURE',),
- Because Gii is a powerful tool, it’s best not to enable it on a live server. Ideally you’ll enable Gii on a development server, use it, and disable it, and then later put the site online.
0 0
- YII-Note2
- Note2
- note2
- Project Note2
- SVN note2
- JQuery-Note2
- Python Note2
- SQL note2
- snort note2
- cs229-note2
- Linux.Note2
- Mysql.Note2
- Django note2
- Struts Learning Note2 --- ActionServlet
- JQuery learning note2
- oracle note2 存储过程
- WCF Note2 (WCF Security)
- ASP.NET MVC Note2
- 准备看点书
- I,P,B帧和PTS,DTS的关系
- Qt操作xml引发内部异常(Qt5Xml.lib和Qt5Xmld.lib)
- Linux设备驱动之——PCI 总线
- 【Java基础】面向对象
- YII-Note2
- Android SDK下载和更新失败的解决方法
- Host文件的含义和作用(快速解析与屏蔽域名)
- Android .9图片制作教程(二)
- Java开发牛人十大必备网站
- 第一天开博!
- Linux下各种后缀名文件安装
- [OpenGL ES 04]3D变换实践篇:平移,旋转,缩放
- android 图片加载之边下载边显示的讨论。