模型类:pc_base::load_model()
系统类库:pc_base::load_sys_class()
模块类库:pc_base::load_app_class()#file: phpcms/base.php
#line: 110
private static function _load_class($classname, $path = '', $initialize = 1) {}
系统类库:pc_base::load_sys_class()
模块类库:pc_base::load_app_class()#file: phpcms/base.php
#line: 110
private static function _load_class($classname, $path = '', $initialize = 1) {}
为啥我在自定义函数类中写了一个测试函数
<?php
/**
* extention.func.php 用户自定义函数库
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-10-27
*/
//获取评论总数
//测试函数
function getTest($id){
echo "159111111111111111111111111111111111";
}
?>然后我在前台模板中写上
{template "content","header"}{getTest(aaa)}
但是没有输出呢
为啥我在自定义函数类中写了一个测试函数
<?php
/**
* extention.func.php 用户自定义函数库
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-10-27
*/
//获取评论总数
//测试函数
function getTest($id){
echo "159111111111111111111111111111111111";
}
?>然后我在前台模板中写上
{template "content","header"}{getTest(aaa)}
但是没有输出呢
应该是return不是echo