随笔分类 -  PHP

上一页 1 2 3 下一页
ecstore前台模板变量处理
摘要://截取//时间戳转日期//根据image_id获取图片//小图//大图//中图 //原图//数组拆分为字符串//array('a','b')====a,b//打印//金额//(四舍五入,保留2位)¥12.78 //直接显示html//默认值//地区//替换//w换成a//数字取整//去除商品名称的标签//插入换行符//数组长度//左边移动n个字符,并用-代替//以下为未验证的//商品规格PS... 阅读全文
posted @ 2018-10-11 14:59 limonyun 阅读(536) 评论(0) 推荐(0)
ecstore 写入日志文件
摘要:error_log("tuikuan_sdf>>>>>>".var_export($sdf,1),3,DATA_DIR.'/callback.txt'); 阅读全文
posted @ 2018-10-09 08:57 limonyun 阅读(120) 评论(0) 推荐(0)
ecstore 模板截取字符串
摘要:<{$detail['indexs']['title']|cut:30}> 阅读全文
posted @ 2018-09-17 18:58 limonyun 阅读(95) 评论(0) 推荐(0)
多维数组排序
摘要:PHP5.5以下: $key_arrays[]='排序字段'; $coupons_list=array('1','2','3');//排序数组 foreach ($coupons_list as $cou) { $key_arrays[]=$cou['to_time']; } //即将结束 array_multiso... 阅读全文
posted @ 2018-09-17 09:06 limonyun 阅读(180) 评论(0) 推荐(0)
ecstore 引入js文件
摘要: 阅读全文
posted @ 2018-08-06 13:45 limonyun 阅读(141) 评论(0) 推荐(0)
thinkphp3.2 phpexcel导入
摘要://导入public function textImp(){ //框架上传文件 $upload = new \Think\Upload(); $upload->maxSize = 3145728; $upload->exts = array('xlsx'); $upload->rootPath = './Public/uploads/'; ... 阅读全文
posted @ 2018-07-30 15:34 limonyun 阅读(167) 评论(0) 推荐(0)
PHP生成CSV文件 内部换行
摘要:当我们使用PHP将采集到的文件内容保存到csv文件时,往往需要将采集内容进行二次过滤处理才能得到需要的内容。比如网页中的换行符,空格符等等。 对于空格等处理起来都比较简单,这里我们单独说说换行符的处理。 换行符在html中一般有3种写法: 那么当我们知道原始需要处理的目标后,下一步自然就是要着手处理 阅读全文
posted @ 2018-07-17 17:15 limonyun 阅读(624) 评论(0) 推荐(0)
ecstore 后台列表 增加查看项
摘要:1、在finder文件夹下建立goods文件夹,再建立error.php 2、在services.xml加上 <service id="desktop_finder.b2c_mdl_goods_error"> <class>b2c_finder_goods_error</class> </servi 阅读全文
posted @ 2018-07-12 18:09 limonyun 阅读(240) 评论(0) 推荐(0)
ecstore 后台挂件新增优惠券选择列表
摘要:优惠券:\custom\b2c\controller\admin\sales\coupon.php 新增starbuy_weight_radio方法 以下为整个代码: <?phpfunction theme_widget_employee_choice(&$setting, &$smarty){ f 阅读全文
posted @ 2018-06-08 15:45 limonyun 阅读(298) 评论(0) 推荐(0)
thinkphp3.2整合workerman 多入口模式(windows)
摘要:第一步:将Workerman复制到ThinkPHP项目中的适当位置(我是放到根目录,与ThinkPHP平级) 第二步:将Workerman中的所有文件(除/Workerman/Lib/Constants.php外)后缀改为.class.php,如:Worker.php改为Worker.class.p 阅读全文
posted @ 2018-04-19 00:06 limonyun 阅读(1813) 评论(0) 推荐(0)
JS判断当前URL对当前链接高亮显示
摘要:Home 商场管理 商户查询 我的信息 退出系统 阅读全文
posted @ 2018-03-10 16:29 limonyun 阅读(350) 评论(0) 推荐(0)
ecstore获取系统配置信息
摘要:变相的使用app::get($app_id)->getConf($key)取数据 <{appconf app="b2c" key="site.point_deductible_value"}> 阅读全文
posted @ 2018-03-02 14:09 limonyun 阅读(192) 评论(0) 推荐(0)
git ignore文件创建后的问题
摘要:使用git,就可能会用到.gitignore文件用来忽略一些文件。 刚开始用的时候,git push 是没有问题,但git pull 就出问题了,会把ignore文件里面对应规则的文件或文件夹删除。 经过无数次的实验得出以下结论: 在git pull之前要删除本地暂存区和远程的文件才行(保留本地文件 阅读全文
posted @ 2018-02-05 08:21 limonyun 阅读(198) 评论(0) 推荐(0)
ecstore session使用
摘要:kernel::single('base_session')->start() 阅读全文
posted @ 2018-01-26 08:25 limonyun 阅读(156) 评论(0) 推荐(0)
ecstore 根据image_id获取图片路径
摘要:$img_id=app::get('b2c')->getConf('site.loginlogo');//获取配置信息 $loginbg['img_src'] = base_storager::image_path($img_id);//原图 $loginbg['img_src'] = base_s 阅读全文
posted @ 2018-01-19 09:17 limonyun 阅读(184) 评论(0) 推荐(0)
ecstore 添加快速搜索
摘要:在对应的dbschema中的字段添加 'searchtype' => 'has', 'filtertype' => 'yes', 'filterdefault' => true, 如果是关联表则还需要加以下代码: 在model文件夹下面对应的php文件加: 阅读全文
posted @ 2018-01-04 10:47 limonyun 阅读(306) 评论(0) 推荐(0)
ueditor不过滤保存html
摘要:function isText(node, arr) { if(node.parentNode.tagName == 'pre'){ //源码模式下输入html标签,不能做转换处理,直接输出 arr.push(node.data) }else{ // arr.push(notTransTagName 阅读全文
posted @ 2017-12-28 10:24 limonyun 阅读(563) 评论(0) 推荐(0)
ecstore 新增input控件方法
摘要:打开app\desktop\lib\view\input.php 新建 input_xxx方法 阅读全文
posted @ 2017-12-28 10:17 limonyun 阅读(200) 评论(0) 推荐(0)
ecstore前台模板保留css样式
摘要:打开app\site\lib\controller.php 阅读全文
posted @ 2017-12-28 10:14 limonyun 阅读(150) 评论(0) 推荐(0)
ecstore 当前网址
摘要:php:$base_url=kernel::base_url(true); 阅读全文
posted @ 2017-12-22 11:32 limonyun 阅读(118) 评论(0) 推荐(0)

上一页 1 2 3 下一页