- 博客(20)
- 资源 (4)
- 收藏
- 关注
原创 yzmcms手机模板常用标签
全局部分描述、关键词、页面标题<title>{$seo_title}</title><meta name="keywords" content="{$keywords}" /><meta name="description" content="{$description}" />格式化时间{date('Y-m-d H:i:s',$inputtime)}css、js链接<link rel="stylesheet" href="{STAT
2020-08-01 08:48:41 755
原创 yzmcms常用标签
yzmcms常用标签全局标签关键字、描述和页面标题<title>{$seo_title}</title><meta name="keywords" content="{$keywords}" /><meta name="description" content="{$description}" />js和css路径代码<link href="{STATIC_URL}peiyin/css/base.css" type="text/css"
2020-07-31 10:15:55 1051
原创 拿来即用 thinkphp5 + phpspreadsheet 上传数据到数据库(带图)
view层<form action="{:url('system/exceladd1/daoru')}" method="post" enctype="multipart/form-data"><label for="file">Filename:</label><input type="file" name="file" id="file" /> <br /><input type="submit" name="submit" v
2020-07-10 15:56:05 531
原创 拿来即用的thinkphp5 + phpspreadsheet 导入excel功能
view层<form action="{:url('system/exceladd1/daoru')}" method="post" enctype="multipart/form-data"><label for="file">Filename:</label><input type="file" name="file" id="file" /> <br /><input type="submit" name="submit" v
2020-07-10 14:18:10 1159
原创 zblog火车头采集经验
经验:1、内容为空的过滤关掉开启这个则会有文章出现错误2、经验2:评论区域的内容需为json格式,所以最好不填写3、经验3:ftp上传不开启,下面的目录无用处4、经验4:内容规则部分标签的顺序不影响使用经验:1、内容为空的过滤关掉开启这个则会有文章出现错误...
2020-07-06 10:48:24 1525
原创 thinkphp5实例化模型的几种方法
1、(1)引入命名空间use app\common\model\Admin;(2)使用(new 模型())进行实例化$res = (new Admin())->login(input(‘post.’));2、多次调用模型中的函数时可以用thinkphp5的构造函数// thinkphp构造方法,创建模型的简洁调用方式 public function _initialize() { parent::_initialize(); $this-&g
2020-06-22 15:10:03 1541
原创 thinkphp5 模型验证数据的几种方式
1、用use think\Loader;(1)引入命名空间 use think\Loader;(2)加载验证规则 $validate = Loader::validate(‘Admin’);(3)验证数据并返回结果if(!$validate->check($data)) { return ['valid'=>0,'msg'=>$validate->getError()]; } 2、用use t
2020-06-22 15:02:30 687
原创 layui子弹窗(子页面)像父页面传递数值
1、子页面分析数据,将值传给父级页面的函数。parent代表父级页面getSIngleSonData是父级页面的js函数parent.getSingleSonData(single_ids);子页面实例如下<script> $('#adds').click(function() { // alert(123); var single_ids = []; $('input[name="checkbox"]:checked').eac
2020-06-22 14:47:36 931 1
原创 史上最简单的dataTables.js使用教程
1、下载https://datatables.net/2、合理的html代码<table id="data-table-list" class="table table-border table-bordered table-bg table-hover table-sort"> <thead> <tr class="text-c"> <th width="10"><input type="ch
2020-06-22 14:39:29 1849
原创 thinkphp5+phpexcel实现excel表格导入数据到数据库
1、下载phpexcelcomposer require phpoffice/phpexcel2、html代码<form class="form form-horizontal" id="form-article-add" method="post"> <div class="row clearfix"> <div class="form-controls col-xs-12 col-sm-12"> <span class="btn-u
2020-06-22 14:27:51 657
原创 编辑ueditor的样式(ueditor隐藏工具栏)
1、下载并引入框架<script type="text/javascript" src="__STATIC__/lib/ueditor/1.4.3/ueditor.config.js"></script> <script type="text/javascript" src="__STATIC__/lib/ueditor/1.4.3/ueditor.all.min.js"> </script> <script type="text/javascri
2020-06-22 14:20:06 3233
原创 thinkphp5 利用hdphp提供的crypt工具实现用户密码的加密与解密
使用crypt的四步走下载文件–> config.php加入加密的key-> 模型中引入命名空间(use houdunwang\crypt\Crypt;)-> 使用halt(Crypt::encrypt(‘admin8888’))1、下载工具框架composer require houdunwang/Cryp使用composer工具进行下载2、在application\config.php的配置文件中进行配置配置参数如下 'crypt' => [ 'key'=&g
2020-06-22 14:12:01 1039
原创 H-ui中使用layui实现文件上传
1、下载完整的lyui框架h-ui引入的只有layui的弹窗,无其他功能。https://www.layui.com/安装好后复制到自己想用的文件夹中备用2、html代码<div class="row clearfix"> <label class="form-label col-xs-4 col-sm-2">缩略图:</label> <input type="text" value="" id="thumb_src" name="thum
2020-06-22 14:04:41 1133
原创 史上最简单的git工具实用教程
1、下载https://www.bootcss.com/p/git-guide/在这个网站下载安装即可2、使用想要将文件下载到哪个文件夹,在相应文件夹右键选择git bush打开,输入命令即可使用
2020-06-22 13:51:28 146
原创 史上最简单的composer使用教程
composer安装及使用1、Phpstudy安装composer(通过其他方法安装太难,实在是不会)2、在cmd命令中输入composer看是否能用3、Cmd进去网站根目录并测试composer是否能用4、下载相应内容5、更多composer使用教程在慕课网搜索composer,YII不得不说的故事中有详细教程...
2020-06-22 13:49:19 1851
原创 H-ui的layui弹窗无法设置宽高
layerui不能设置宽高,因为有layer.full(index); 删了就好了例如下面的代码function single_add(title,url){var index = layer.open({type: 2,title: title,content: url,end: function () {window.location.reload();}});layer.full(index);}...
2020-06-22 13:46:58 336
原创 thinkphp用后盾网的数组增强插件实现栏目的树状结构
1、下载后盾网的arrComposer require houdunwang/arr2、配置文件以供使用将use houdunwang\arr\arr;改成Houdunwang\Arr\Arr;且Arr.php文件和category文件都需要更改。否则报错non-static method xxx()should not be called staticallyclass Houdunwang\Arr\Arr;不存在3、使用在需要使用的model中声明houdunwang\Arr\Arr;
2020-06-22 13:44:05 215
原创 thinkphp5 使用验证码的四步
(验证码4步:显示(手册中找)->config.php配置(手册)->validate配置(手册)->点击图片更换验证码js)1、显示验证码: <img src="{:captcha_src()}" alt="captcha" id="captcha"/>2、confing.php中的配置'captcha' => [ // 验证码字符集合 'codeSet' => '2345678abcdefhijkmnpqr
2020-06-22 13:35:32 243
原创 thinkphp5 view层代码整理
24、视图view的标签View(‘index’)//app/admin/view/entry/index.htmlView(‘upload)//app/admin/view/entry/upload.htmlView(‘public/upload)//app/admin/view/public/upload.htmlView(‘./index.html’)//public/index.htmlView(‘index’,[‘email’=>’123@qq.Com’])//可以在页面中用{Ka
2020-06-22 13:29:02 483
原创 Thinkphp的安装 出现No input file specified
提示:“No input file specified.”原因在于使用的PHP5.6是fast_cgi模式,况而在某些情下,不能正确识别path_info所造成的错误。默认的.htaccess里面的规则(如图):“No input file specified.”,是没有得到有效的文件路径造成的。修改后的伪静态规则,如下:仅仅就是在正则结果“/$1”前面多加了一个“?”号,问题也就随之解决了。...
2020-06-22 13:23:49 413
全功能Z-Blog免登录发布插件3.0.zip
2020-07-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人