完整表见笔记
CREATE TABLE `posts` (
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`title` VARCHAR(255) DEFAULT NULL COMMENT '标题',
`summary` VARCHAR(255) DEFAULT NULL COMMENT '摘要',
`content` TEXT COMMENT '内容',
`label_img` VARCHAR(255) DEFAULT NULL COMMENT '标签图',
CREATE TABLE `posts` (
`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`title` VARCHAR(255) DEFAULT NULL COMMENT '标题',
`summary` VARCHAR(255) DEFAULT NULL COMMENT '摘要',
`content` TEXT COMMENT '内容',
`label_img` VARCHAR(255) DEFAULT NULL COMMENT '标签图',
2016-10-31
CREATE TABLE `cats`(
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`cat_name` varchar(255) DEFAULT NULL COMMENT '分类名称',
PRIMARY KEY(`id`)
)ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT '文章';
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`cat_name` varchar(255) DEFAULT NULL COMMENT '分类名称',
PRIMARY KEY(`id`)
)ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT '文章';
2016-10-31
'language' => 'zh-CN',
....
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
// 'basePath' => '/messages',
'fileMap' => [
'common' => 'common.php',
],
],
],
],
....
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
// 'basePath' => '/messages',
'fileMap' => [
'common' => 'common.php',
],
],
],
],
2016-10-30