0
aboutus.html上的{CONSTANT}如何顯示「Hello world」。我在aboutus.php中定義的?PHPbb傳遞參數或定義參數
很多很多謝謝。
aboutus.php - 我定義常量的hello world。
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
define("CONSTANT", "Hello world.");
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
page_header('Title Here');
$template->set_filenames(array(
'body' => 'aboutus_body.html',
));
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
aboutus_body.html - 哪有{常數衝顯示的 「Hello World」。上面定義的?
<h2>About Us2</h2>
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<p>
We were founded this year to bring you the best forum on the Internet!
We promise to do the following:
<ul>
<li>Provide new content</li>
<li>provide a friendly atmosphere</li>
<li>Provide an environment where you can have fun!</li>
</ul>
<p>{CONSTANT}</p>
</p>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>