06 2018 档案
摘要:thinkcmf 忘记密码 或者 密码错误 如何修改后台登陆密码? 直接在后台登陆控制器里输入 dump(cmf_password('123456')); 参考文件路径 app\admin\controller\PublicController.php 访问后台登陆 使用cmf_password函数
阅读全文
摘要:thinkphp 模板变量使用函数 模板变量字符串正则换行,遇到。和;号 自动添加<br/>换行符 实例 thinkcmf模板变量使用函数 参考资料: php preg_replace函数 thinkphp5模板变量使用函数 PHP正则表达式笔记和实例
阅读全文
摘要:THINKCMF 自定义扩展函数 phpstorm里全局搜索下 ctrl + alt + f 搜索 extra_file_list 然后跳转到 app\config.php 文件里 这里是thinkcmf定义扩展函数文件的位置 thinkphp5定义的位置在 simplewind\thinkphp\
阅读全文
摘要:window.location.href = document.referrer;window.history.back(-1);
阅读全文
摘要:1.等分td 在一行里 实现table css table-layout: fixed; 一个tr里多个td就会等分宽度(宽度都一样) 一个tr里一个td就需要设置conspan='数量' (这里数量就是最多饿一行tr的td数)
阅读全文
摘要:下面情况是单独的一个数据添加 1.$adminname[0];保证是一个数组 2.需要把user_login替换成adduser,顺序是替换的键名在前面(标红) 3.修改完别忘记注销 unset以前的键名 $namearray =$adminname[0]; $namearray['adduser'
阅读全文
摘要:在模板里使用{:url(),array(形参''=>'传递的参数')} <a href="{:url('review_tenders/edit',array('id'=>$nodata.id))}" class="am-btn am-btn-secondary am-btn-xs" dataid="
阅读全文
摘要:一 select下的option 跳转链接问题 知识点 window.open(url) 新窗口打开 window.location = this.value 当前页面打开 实例 <select onchange="window.open(this.value) ;"> <option select
阅读全文
摘要:外层div 设置display:table 里层div设置display:table-cell; float:none;vertical-align:middle; html css
阅读全文
摘要:操作流程 1初始化git init 2.git add .添加所有文件 3.git commit -m '本地程序提交到远程--这里填写信息' 4.git push origin master -f 强制更新上 遇到的问题 1.git初始化提示已有的 先从git上下载程序 ,这时候初始化会提示已有g
阅读全文
摘要:1.安装apache httpd 启动apache systemctl start httpd.service 检测是否启动 curl 测试下 curl localhost 出现以下信息说明就是可以的了 2.安装php 以下是CentOS 7.0的源。 yum install epel-releas
阅读全文