【发布时间】:2011-08-08 02:33:49
【问题描述】:
我正在使用 wordpress,我有一些变量需要在其他页面上使用,这些变量位于索引中包含的不同文件上 (<?php include('somefile.php');?>)。
我的问题是 somefile.php 中的变量可以直接在 index.php 上回显吗? 如果是,你能告诉我怎么做吗?
提前致谢
【问题讨论】:
-
一般来说是的,但是这个问题太慷慨了, somefile.php 的内容是什么?为什么不包括所有内容?