由 心如止水1 » 2011-03-27 20:36
请教jack老大:{补充:sideboxes里的模块随意插入到网页任意位置方法参考search_header.php的做法:把require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);改为require($template->get_template_dir ('tpl_box_你自定义的文件名.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_box_你自定义的文件名.php');在common目录下建立此文件名:tpl_box_你自定义的文件名.php内容:<?php echo $content; ?>插入模块时参考写法:<?php require(DIR_WS_MODULES . 'sideboxes/' . 'search_header.php'); ?> }能具体说一下或者举个具体的列子么?谢谢啦?