PHP相对路径的问题

2025-06-28 05:02:19
推荐回答(3个)
回答1:

实际的路径是经过编译后在templates_c目录下,所有加载时,必须 ../templates/index.html

回答2:

因为之前smarty的模板路径不是都配好了

回答3:

因为你调用了$smarty模板,他自己就默认已经在smarty目录下了,所以就不用再次包含了