• thinkcmf 标题字数超出显示省略号

    小编从尝试thinkphp框架以来是一位出道的新手,但对于知识的渴望比较强,有一个调用需要用到标题字数超出时,要自动加上省略号,听说在thinkphp模板引擎里可以这样写:{$vo.title|msubstr=0,5,'utf-8′,false} 。函数msubstr它代表的意思是截取字符串$vo.title,从0个字符开始截取,截取5个字符,使用的是utf-8编码,默认截取后不显示省略号,如果要显示省略号,把false改成true就可以。 函...阅读全文
    作者:admin | 分类:ThinkCMF | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |
  • thinkcmf 根目录安装

    thinkcmf 默认是在站点/public 下安装,这样我们没有办法部署网站,方法如下: 拷贝public 下 index.php  plugins static themes upload 到网站根目录 在把Index.php 更改为 // 定义CMF根目录,可更改此目录 define('CMF_ROOT', __DIR__ . '/./'); 即可   下载地址:http://blog.wmphp.com/down/thinkcmf20180422.zip 阅读全文
    作者:admin | 分类:ThinkCMF | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |
  • ThinkCMF实现当前栏目选中效果

    代码如下: <php> $pid_info=M('terms')->where('term_id='.I('get.id'))->find(); $pid_path = explode("-",$pid_info['path']); $path_text=array(); foreach ($pid_path as $pid_vo) { if(empty($pid_vo)){ array_push($path_text,'首页'); }else{ $tmp=M('terms')->where('term_id='.$pid_vo)->find(); array_push($path_text,$tmp['name']); } } $path_text = impl...阅读全文
    作者:admin | 分类:ThinkCMF | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |
  • ThinkCMF 获取当前位置

    ThinkCMF 获取当前位置,代码如下: <php> $pid_info=M('terms')->where('term_id='.I('get.id'))->find(); $pid_path = explode("-",$pid_info['path']); $path_text=array(); foreach ($pid_path as $pid_vo) { if(empty($pid_vo)){ array_push($path_text,'首页'); }else{ $tmp=M('terms')->where('term_id='.$pid_vo)->find(); array_push($path_text,$tmp['name']);...阅读全文
    作者:admin | 分类:ThinkCMF | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |
  • ThinkCMF 文章做成单页伪静态

    文章做成单页,但需要在美化里做,原始网址:portal/article/index?cid=1&id=1 显示网址:article 这样就行了,cid代表栏目,id代表文章。 阅读全文
    作者:admin | 分类:ThinkCMF | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |
  • thinkcmf 忘记后台密码?

    后台密码忘记了怎么办? 1.如果你已经在后台配置了,邮件发送功能且邮箱是你的真实邮箱,可以到前台登录页找回密码; 2.如果你是后台管理员,你可以使用 sp_password()方法生成一下新的密码; 你只要在任何一个前台可以访问控制器里,如application/Portal/Controller/IndexController.class.php <?php namespace Portal\Controller; use Common\Controller\HomebaseController; /**...阅读全文
    作者:admin | 分类:ThinkCMF | 阅读:
    Warning: Use of undefined constant the_views - assumed 'the_views' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/archive.php on line 19
    |