织梦dedecms扩展标签怎么用?
织梦DEDECMS扩展标签演示实例
推荐学习:织梦cms
我们可以看一个示例标签:demotag.lib.php ,
if(!defined('DEDEINC')) { exit("Request Error!"); } function lib_demotag(&$ctag,&$refObj) { global $dsql,$envs; $attlist="row|12,titlelen|24"; FillAttsDefault($ctag->CAttribute->Items,$attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); $revalue = ''; //------------------------------------------------------ $revalue = 'Hello Word!'; //------------------------------------------------------ return $revalue; } ?>登录后复制
本文地址:http://ezhuoer.com