
thinkphp
爱因斯坦小弟
我们不生产代码,只是代码的搬运工
展开
-
thinkPHP5 生成项目目录
1.thinkPHP官网下载 好后解压到web运行环境下 2。在目录中找到build.php文件 return [ // 生成应用公共文件 '__file__' => ['common.php', 'config.php', 'database.php'], // lopo就是你要建立的项目模块的名称 'lopo' => [原创 2017-07-08 13:26:00 · 1831 阅读 · 0 评论 -
thinkPHP 5 模板继承
首先要建立一个公共页面: 以下是(控制器)index.php <?php namespace app\admin\Controller; // use think\Controller; use think\Db; use think\Model; class Index extends Common { public function index()原创 2017-07-18 14:20:02 · 5680 阅读 · 0 评论 -
thinkphp3.2 更新数据表某一字段的全部内容
1. M('User')->where('id=1')->setField('num', 1);//当id=1 时更新数据user表 num字段为1 2. M('User')->where('1=1')->setField('num', 0);//更新user表所有的num字段为0原创 2017-07-26 16:15:02 · 3159 阅读 · 0 评论