Including a .php Into an already Templated Page
Posted: Wed Jun 30, 2004 12:14 pm
Say I got index.php, in which calls for the template index.tpl. And in that index.tpl is all your headers, and footers and such, html code. Say I wanted to have that template have a page include into the top of it. I tried <? PHP include('anewfile.tpl') ?> i've tried just using { } , i've tried linking a .php. Nothing seems to work... here is the code:
Code: Select all
<?php
<td width="100%" valign="top" align="left">
<table border="0">
<!-- title -->
<tr>
<td height="21"><div class="titlePage">Client Information System</div></td>
</tr>
<tr><td><?PHP include 'thebar.php'; ?><A href="/index.php" class="link">Home </A> -> {if $p_admin eq 'y'}<a href="frmAdmin.php" class="link">Admin </a> -> <a href="/frmUsersGrid.php" class="link">Users</a>{/if}</td></tr>
</table>
</td>
<!-- Login box -->
?>