AppframeController ----- ThinkCMF框架控件器基类,继承至ControllerAdminbaseController ----- ThinkCMF框架后台控件器基类,继承至AppframeControllerHomebaseController ----- ThinkCMF框架前台控件器基类,继承至AppframeControllerMemb...
AppframeController ----- ThinkCMF框架控件器基类,继承至ControllerAdminbaseController ----- ThinkCMF框架后台控件器基类,继承至AppframeControllerHomebaseController ----- ThinkCMF框架前台控件器基类,继承至AppframeControllerMemb...
field('content',true)就会排除content字段
内页有很多变量都是可以直接用的$post_source 文章来源$post_title 文章题目
原文地址: http://www.thinkcmf.com/document/article/id/232.html sp_sql_posts($tag,$where) 功能:查询文章列表,不做分页参数:$tag:查询语句(见$tag规则)$where:查询条件,(暂只支持数组),格式和thinkphp where方法一样;返回信息如下:[pcsh lang="php" t...
\application\Portal\Controller\AdminPostController.class.phpadd_post接收后台post过来的数据,并增加一个文章,其接收的 $_POST['smeta'] 是拓展字段edit显示后台的编辑文章的iframe
php脚本即将死掉时会调用这个函数,来调用一个函数用以处理最后的事务
未做更完整的测试按以下方法一定可以解决一定要在hooks.php和hooks.html中都写上这个钩子,否则是不会注册的而且我实际开发过程发现,这两个貌似都必须同时存在才有效原文地址:http://www.thinkcmf.com/topic/topic/index/id/399.html
文章分页查询方法thinkcmf的分页貌似更喜欢放到模版中处理有一个内置函数sp_sql_posts_paged原文地址http://www.thinkcmf.com/document/article/id/258.htmlsp_sql_posts_paged($tag,$pagesize,$pagetpl)$tag规则:cid 分类id;field 需要取出的内容,默认取出所有信息;ord...
sp_get_term示例[pcsh lang="php" tab_size="4" message="" hl_lines="" provider="manual"]<?php $term_id=1; $term=sp_get_term($term_id ); //获取分类信息 print_r($term); //打印出分类信息 ?>[/pcsh]返回数组说明:t...