随笔分类 -  框架

thinkp3.2,yii,ci...
摘要:笔者刚接手公司一个项目,后台是使用extjs6做前端,php做api接口,两者通过ajax交互 没办法,不管接手的项目多么的挫逼,都还是要上的,拿人钱财替人消灾嘛 首先是安装sencha cmd ,百度一下 https://www.sencha.com/products/extjs/cmd-down 阅读全文
posted @ 2016-05-13 23:10 Lion_coder 阅读(2357) 评论(0) 推荐(0)
摘要:使用tp3.2.3的cli模式时,报错。加上绝对路径还是报错。所以采用普通模式if(version_compare(PHP_VERSION,'5.3.0',' 5.3.0 !');//普通模式,解决官方分组不支持cli的问题$depr = '/';$path = isset($_SERVER[... 阅读全文
posted @ 2015-12-14 17:26 Lion_coder 阅读(7023) 评论(0) 推荐(0)
摘要:安装中文文档:http://www.yiichina.com/doc/guide/2.0/start-installation1,安装这里我直接下载归档文件,压缩包安装了。composer各种麻烦,国情你懂得。https://github.com/yiisoft/yii2/releases/down... 阅读全文
posted @ 2014-11-10 14:35 Lion_coder 阅读(5007) 评论(1) 推荐(1)
摘要:今天搞了tp3.1的widget,继承了widget类,但是老是掉用错误,所以换种写法,直接继承actionTestAction.class.php1 $this->display();//调用模板2 3 Group/Home/Widget/TestWidget.class.php4 5 class... 阅读全文
posted @ 2014-11-10 10:11 Lion_coder 阅读(307) 评论(0) 推荐(0)
摘要:1 /** 2 * 中文处理 3 * @param type $str 4 * @return str 5 * $author lxh 6 */ 7 function url2word($str){ 8 $sub=s... 阅读全文
posted @ 2014-11-06 10:19 Lion_coder 阅读(533) 评论(0) 推荐(1)
摘要:$url="http://www.test.com/test.jpg";//图片远程地址 $local="./Upload/test/test.jpg";//下载到本地存放的目录 import("ORG.Net.Http"); \Org\Net\Http:... 阅读全文
posted @ 2014-10-21 17:56 Lion_coder 阅读(697) 评论(0) 推荐(0)