Jump to content

i wan't $thingy to be accecible inside my themfile


ztealmax

Recommended Posts

Hi im really hitting my head in the wall, can't figure out how to define things like:
$thingy inside my first file called read.php and inside that file i call for theme.php
and inside theme.php i want to be able to use the defined $thingy i defined in read.php

How would i do something like that?
i dont seem to be able to <? echo $something ?> after i have put in this
[b]news.php[/b](Partial code)
[code]<?
$caption="gurka";
require("$themes/$themedata/theme.php");
caption();
?>
<? echo $news ?>
[/code]

the $news thats inside theme.php im trying to echo out is:
[b]theme.php[/b]
[code]
<?PHP
function caption()
{
        global $caption;
        echo $caption;
}
$news .=
"
<table style='width:100%; background-color:#FFFFFF' cellspacing='3' class='topborder'>
<tr>

<td class='caption' style='white-space:nowrap'>".$caption."</td>
<td class='content'>".$content."</td>
<
</tr>
</table>
</div>";

?>[/code]
what am i doing wrong at this point?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.