随笔分类 - open
摘要:一、modulemodule值:表示模块的id ID1、核心; ID2、会员; ID3、扩展; 当ID>3时,为购买、公司等模块。 dt:为各种变量,相当于整站的配置,如:关键词、描述、积分等。例子:[6]=> array(12) { ["moduleid"]=> ...
阅读全文
摘要:destoon二次开发模板和调用语法参考一、模板存放及调用规则模板存放于系统 template 目录,template 目录下的一个目录例如 template/default/ 即为一套模板模板文件以 .htm 为扩展名,可直接存放于模板目录例如 template/default/index.htm...
阅读全文
摘要:获取栏目名:{$CAT[catname]}或{$catname}获取父栏目名:{$CATEGORYS[$CAT[parentid]][catname]}获取同级栏目列表:{pc:content action="category" catid="$parentid"} {loop $data $...
阅读全文
摘要:《AR》CActiveRecord:path:/framework/db/ar/CActiveRecord.phpoverview:is the base class for classes representing relational data.It implements the active ...
阅读全文
摘要:path:framework/base/interfaces.phpoverview:This file contains core interfaces for Yii framework.interface IApplicationComponent:all application compon...
阅读全文
摘要:CComponent:path:framework/base/CComponent.phpoverview:This file contains the foundation classes for component-based and event-driven programming. ...
阅读全文
摘要:PHPCMS一、模版引擎如:调用单页面index.php?m=content&c=index&a=lists&catid=9.1.先获取到模版变量的值$template_list="list";然后通过$type!=0来判断是单页面, 然后通过$template = $setting['page_t...
阅读全文
摘要:dropDownList:Yii中可以采用CHtml类来实现,也可以用CActiveForm来实现。一、用CHtml来实现。VIEW中实现:'USA',7=>'France',3=>'Japan'),array('ajax' => array('type'=>'POST', //request ty...
阅读全文
摘要:数据库操作:$member_db = pc_base::load_model('member_model');$memberinfo = $member_db->get_one(array('userid'=>$userid));get_one($where = '', $data = '*', $...
阅读全文
摘要:dede:sql标签: sql标签可以称得上是个万能标签了,查询数据库将其输出,这里介绍一些关于这个标签的用法: 1.用来输出统计内容,这个是不错的,举个例子,我们来统计下总共发了多少的文章,思路就是输出dede_addonarticle这个文章附加表内容总数就可以了。 {dede:sql sql="SELECT COUNT(*) AS nums FROM dede_addonarticle"} [field:name = "nums"/] {/dede:sql} 2.使用~field~来进行特殊的查询,比如之前论坛上面很多会员需要做一个输出当前发布文章
阅读全文