-
When use thinkphp group module with ThinkTemplate, it works fine.
But when use smarty as replacement, it can not work as follow:
exception 'SmartyException' with message 'Unable to load template fil…
-
比如我在route.php中使用了域名路由
Route::domain('admin.thinkphp.cn','admin');
Route::domain('blog.thinkphp.cn','blog');
Route::domain('www.thinkphp.cn','www');
这时我想生成www模块下api文档,就得注册路由
Route::get('doc/assets…
-
thinkphp快6.0了,thinkcmf什么时候也6.0
-
你好,我首先在微信云托管后台通过ThinkPHP(Nginx)模板快速创建了1个服务,然后在github上下载了这个仓库的源代码,修改了wxcloudrun-thinkphp-nginx\app\controller\Index.php文件(把getCount方法返回的data值写成了一个固定值10000)后,然后开始发布:选择了手动上传代码包的方式,发布正常,但是在后台云端测试/api/coun…
-
ThinkPHP 版本 3.1.2
前提:
'DATA_CACHE_TYPE'=>'Memcache', //默认缓存Memcache
"DB_SQL_BUILD_CACHE"=>true, //开启SQL缓存
'DB_SQL_BUILD_LENGTH' =>50, // SQL缓存的队列长度
'DB_SQL_BUILD_QUEUE' =>'file', //…
-
我的目录结构如下
```
dmc
├── Application
├── ThinkPHP
└── webroot
├── Public
└── index.php
```
index.php下路径已更改
```
// 定义应用目录
define('APP_PATH','../Application/');
// 引入ThinkPHP入口文件
require '../Thi…
-
我在 Vendor 中搭建了一个 VendorTester.class.php 文件来测试, Controller 完全没理会...
```
#file: VendorTester.class.php
dotku updated
8 years ago
-
http://www.thinkphp.cn/code/258.html
今天再弄一个跟你相似的框架发现这个问题
-
``` php
$data = [
'name'=>$param['name'],
'phone'=>$param['phone'],
'time'=>date('Y/m/d H:i:s' ,time())
];
Db::table('CUSTOMER')->strict(false)->insert($data);
```
执行插入的时候就会报错:
`SQLSTATE[…
-
/vendor/thinkphp/library/think/db/Connection.php on line 675, referer: http://asapro.com.cn/install/index/step3.html