Bu konuyu açarken PHP'den hiç anlamadığımı belirtmekte fayda görüyorum.
Şimdi sorumu şöyle özetleyeyim.
tr.php adında şu şekilde bir dosya oluşturdum.
Alıntı
Alıntı
9
●600
<?php // Text $_['MENU_HOME'] = 'Anasayfa'; $_['MENU_STORE'] = 'E-Store'; $_['MENU_CATALOG'] = '2013 SUMMER'; ?>index.php
<?php
include_once('tr.php');
?>
<html>
<head></head>
<body>
<a href="index.php"><font color="#000000" size="2" face="arial"><?=$_['MENU_HOME'];?></font></a>
<a href="store.php"><font color="#000000" size="2" face="arial"><?=$_['MENU_STORE'];?></font></a>
<a href="catalog.php"><font color="#000000" size="2" face="arial"><?=$_['MENU_CATALOG'];?></font></a>
</body>
</html> <?php
$_['MENU_HOME'] = 'Anasayfa';
$_['MENU_STORE'] = 'E-Store';
$_['MENU_CATALOG'] = '2013 SUMMER';
// include tr.php
function _e( $key = null )
{
global $_;
if( isset($_[$key]) )
{
echo $_[$key];
}
}
_e('MENU_HOME');
?> $menu = array( 'home' => 'anasayfa', 'cat' => 'katalog', );
<?php
include_once('tr.php');
?>
<html>
<head></head>
<body>
<a href="index.php"><font color="#000000" size="2" face="arial"><?=$menu['home'];?></font></a>
<a href="catalog.php"><font color="#000000" size="2" face="arial"><?=$_menu['cat'];?></font><
</body>
</html>en sagliklisi. benim yaptigim sekilde cogaltabilirsiniz