通过跟踪代码修改 internals/core.create_dir_structure.php 对照修改 //fix my template dir structure by zero array_splice($_dir_parts,0,count(explode(DIRECTORY_SEPARATOR,realpath($smarty->template_dir)))-1,$smarty->template_dir); $_new_dir=''; /* all paths use "/" only from here */ foreach ($_dir_parts as $_dir_part) {