会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
加号与剑豪
上一页
1
2
3
4
5
6
···
10
下一页
2017年4月24日
thinkphp-多语言
摘要: 1.创建多语言环境 Common/Conf/创建tags.php中,添加: return array( // 添加下面一行定义即可 'app_begin' => array('Behavior\CheckLangBehavior'), // 如果是其他版本 需要改成 // 'app_begin' =
阅读全文
posted @ 2017-04-24 20:23 加号与剑豪
阅读(93)
评论(0)
推荐(0)
2017年4月23日
thinkphp-文件上传
摘要: <body> <form action="__CONTROLLER__/upload" enctype="multipart/form-data" method="post"> <!--<input type="file" name="photo" /> 单文件上传--> <input type="
阅读全文
posted @ 2017-04-23 20:59 加号与剑豪
阅读(111)
评论(0)
推荐(0)
thinkphp-验证码
摘要: public function index(){ /* //输出验证码 $Verify = new \Think\Verify(); $Verify->entry(); */ /* //多个验证码 //验证码1 $Verify = new \Think\Verify(); $Verify->entr
阅读全文
posted @ 2017-04-23 20:53 加号与剑豪
阅读(130)
评论(0)
推荐(0)
2017年4月22日
thinkphp-图像处理
摘要: //获取图片资源 $image = new Image();$image->open('./Public/1.jpg'); 1.图片信息 /* //输出图片的信息 $arr['width']=$image->width(); $arr['height']=$image->height(); $arr
阅读全文
posted @ 2017-04-22 21:22 加号与剑豪
阅读(184)
评论(0)
推荐(0)
thinkphp-session与cookie
摘要: Session class SessionController extends Controller { public function index(){ //session('name','yjh'); //session赋值 //session('name',null); //删除name值 /
阅读全文
posted @ 2017-04-22 19:40 加号与剑豪
阅读(136)
评论(0)
推荐(0)
2017年4月21日
thinkphp-控制器下
摘要: 1.跳转与重定向 public function user(){ /* $flag=true; //true则成功,false则失败 if($flag){ $this->success('成功','../Kzhiq/all',5); //默认1秒 } //提示信息,跳转地址,跳转时间 else{ $
阅读全文
posted @ 2017-04-21 18:44 加号与剑豪
阅读(94)
评论(0)
推荐(0)
2017年4月20日
thinkphp-控制器上
摘要: 1.控制器操作 (配置)'ACTION_SUFFIX'=>'abc', //增加控制器方法后缀,防止冲突 //public function indexabc(){ //后面加上abc后缀 //} //URL: index就可以了 2.内部调用 /* //内部调用 public function u
阅读全文
posted @ 2017-04-20 21:45 加号与剑豪
阅读(104)
评论(0)
推荐(0)
2017年4月19日
thinkphp-URL操作
摘要: URl操作 1.大小写(配置) //URL可以忽略大小写'URL_CASE_INSENSITIVE'=>true, //控制器UserType....就得user_type 2.伪静态(配置) //伪静态后缀默认html //'URL_HTML_SUFFIX'=>'shtml', //修改默认后缀
阅读全文
posted @ 2017-04-19 20:38 加号与剑豪
阅读(167)
评论(0)
推荐(0)
2017年4月18日
thinkphp-路由功能
摘要: 默认模块 配置文件中 //允许访问的模块 'MODULE_ALLOW_LIST'=>array('Home','Home2'), //默认模块,可以省去模块名输入 'DEFAULT_MODULE'=>'Home', //启用路由功能 'URL_ROUTER_ON'=>true, //配置路由规则 '
阅读全文
posted @ 2017-04-18 20:46 加号与剑豪
阅读(117)
评论(0)
推荐(0)
2017年4月17日
thinkphp-标签库
摘要: 导入扩展标签 <taglib name="html" /> 接下来 <html:imageBtn value="按钮" /> //按钮 <html:editor id="editor" name="remark" type="FCKeditor" style="" >{$vo.remark}</ht
阅读全文
posted @ 2017-04-17 20:25 加号与剑豪
阅读(127)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
10
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告