yii 归档安装

1,下载 yii  Yii2的高级应用程序模板 

2,解压模板到目录,进入控制台进入目录 运行 php init 安装YII

3,进入 http://localhost/phpmyadmin/ 创建数据库 排序规则使用  utf8_unicode_ci

4,打开yii配置文件 yii\commo\main-local.php 设置数据库配置信息

5,设置数据库 

6,用gii生成代码 文件

 

yii命令备忘 

$form->field($model, 'username')->textInput(['maxlength' => 20, 'readonly' => 'true']) ?>  设置属性只读

 strtotime函数为时间戳转换函数

 

相关文章:

  • 2021-08-17
  • 2021-07-07
  • 2021-07-01
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-14
  • 2021-08-29
  • 2022-12-23
  • 2021-11-17
  • 2021-05-29
  • 2022-02-28
  • 2021-12-19
相关资源
相似解决方案