Category Archives: PHP

fastAdmin框架常用指令

1、创建一个控制器

php think make:controller admin/Devicedebug

2、创建一个CURD模块

php think crud -t paneldevice -c paneldevice -r centerdevice -k centerdevice_id -p id

paneldevice表中的centerdevice_id 连接到centerdevice表中的id

官方文档地址:https://doc.fastadmin.net/doc/crud.html

3、前端CSS框架文档

https://v3.bootcss.com/css/#grid-media-queries

4、Thinkphp5开发手册

https://www.kancloud.cn/manual/thinkphp5_1/353946

在Ubuntu中搭建Thinkphp开发环境

参考文档:https://www.kancloud.cn/manual/thinkphp6_0/1037481

一、安装Composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

二、安装稳定版thinkphp

在WEB的根目录运行以下指令

composer create-project topthink/think tp

报错一:

错误
修改php配置,把disable_functions 配置中的proc_open删除即可
he Process class relies on proc_open, which is not available on your PHP installation.
 The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class

报错二:

putenv() has been disabled for security reasons

把putenv函数从禁用列表中删除

安装成功!