Bugs » can't show back links on my site

added on Mar 19, 2009 by joculet
I use smarty class tpl templates. I can't add the links into my pages. they don't appear, I tried the following codes

this is the php file
<?php
$tpl->assign( 'COPYRIGHT', $cSite['sCopyright'] );
$tpl->assign( 'POWEREDBY', 'Copyright....' );
$tpl->assign( 'RECIPROCLINK', '<?php include( "data/output/1001" ); ?>' );
?>

I also tried on the tpl file:

<div id="Footer">
<div class="wrap">
<p><a href="!SITEROOT!">Home</a>
<!-- BEGIN DYNAMIC BLOCK: dynFooter -->
&nbsp;|&nbsp; <a href="!PAGEURL!">!PAGETITLE!</a>
<!-- END DYNAMIC BLOCK: dynFooter -->
&nbsp; | &nbsp; !COPYRIGHT!</p>
<p>!POWEREDBY!</p>
<p>!RECIPROCLINK!</p>
</div>
</div>

Someone please help me out?
added on Mar 24, 2009 by v0id
Hi,

use one of the following solutions:
$tpl->assign( 'RECIPROCLINK', file_get_contents("data/output/1001" ) ); // Remember to set the path
correct

OR use this smarty code:

<p>!include file="data/output/1001"!</p>

/v0id

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.