Есть трабла. Портирую шаблон (опыт есть) с j1.0 на j1.5 - и вот какая фигня получается. Код вызова ВСЕХ модулей в шаблонном index.php прописан абсолютно правильно, а при просмотре странички через браузер наблюдается такая картинка:
* все пути, что прописаны переменными типа
<link rel="stylesheet" href="<?php echo JURI::base();?>/templates/system/css/general.css" type="text/css" />
преобразуются серваком (Денвер) в "нормальные" типа
<link rel="stylesheet" href="http://mydomain.com/templates/system/css/general.css" type="text/css" />
* * но вывод модулей не происходит - строка типа
<jdoc:include type="modules" name="right" />
или
<jdoc:include type="head" />
так и продолжает выводиться в браузере php-кодом, не преобразуясь в HTML...
Вот листинг первой части php:
<?php
defined('_JEXEC') or die;
$document = & $this;
$templateUrl = $document->baseurl . 'templates/' . $document->template;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" />
<head>
<jdoc:include type="head" />
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link rel="stylesheet" href="<?php echo JURI::base();?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo JURI::base();?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo JURI::base();?><?php echo $templateUrl; ?>/css/template.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo JURI::base();?><?php echo $templateUrl; ?>/css/typohraphy.css" media="screen" />
<?php if ( $my->id ) { initEditor(); } ?>
<!--[if IE 6]>
<style type="text/css">
img { behavior: url(<?php echo JURI::base();?>templates/<?php echo $mainframe-> getTemplate(); ?>/css/iepngfix.htc); }
</style>
<link rel="stylesheet" href="<?php echo JURI::base();?><?php echo $templateUrl; ?>/css/ie6_css.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="<?php echo JURI::base();?><?php echo $templateUrl; ?>/css/ie7_css.css" type="text/css" media="screen" /><![endif]-->
<script type="text/javascript" src="<?php echo JURI::base();?><?php echo $templateUrl; ?>/scripts/mootools.js"></script>
<script type="text/javascript" src="<?php echo JURI::base();?><?php echo $templateUrl; ?>/scripts/engine.js"></script>
<script type="text/javascript" src="<?php echo JURI::base();?><?php echo $templateUrl; ?>/scripts/equalcolumns.js"></script>
<noscript><div style="padding:2px; background-color:#cc0066; font-height:bold; color:white; border:1px #cc0099 solid;">Javascript must be enabled in your browser to use this page.<br />Please enable Javascript under your Tools menu in your browser.<br />Once javascript is enabled <a href="index.php">Click here</a> to go back to НИКОЛАЕВСКИЙ ГОРОДСКОЙ ПОРТАЛ «ЖИЗНЬ ГОРОДА»</div></noscript>
</head>
<body id="bg">
<div id="wrapper">
<div id="topmembersarea">
<div id="membersarea">
<div id="tools"> <a href="#" id="buttontools"></a>
<div id="stylebox"><!-- служебная инфа --></div>
<div id="loginbox">
<?php if($this->countModules('advert2')) : ?>
<jdoc:include type="modules" name="advert2" />
<?php endif; ?>
</div>
</div>
</div>
<div id="search">
<?php if($this->countModules('advert1')) : ?>
<jdoc:include type="modules" name="advert1" />
<?php endif; ?>
</div>
</div>
<div id="header">
<div id="logo"><a href="./" class="logo"></a>
</div>
</div>
</div>
А вот как этот же фрагмент выдаётся браузером:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru-ru" lang="ru-ru" />
<head>
<jdoc:include type="head" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://citylife15/templates/citylife/css/template.css" media="screen" />
<link rel="stylesheet" type="text/css" href="http://citylife15/templates/citylife/css/typohraphy.css" media="screen" />
<link rel="stylesheet" href="http://citylife15/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="http://citylife15/templates/system/css/general.css" type="text/css" />
<!--[if IE 6]>
<style type="text/css">
img { behavior: url(http://citylife15/templates/citylife/css/iepngfix.htc); }
</style>
<link rel="stylesheet" href="http://citylife15/templates/citylife/css/ie6_css.css" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="http://citylife15/templates/citylife/css/ie7_css.css" type="text/css" media="screen" /><![endif]-->
<script type="text/javascript" src="http://citylife15/templates/citylife/scripts/mootools.js"></script>
<script type="text/javascript" src="http://citylife15/templates/citylife/scripts/engine.js"></script>
<script type="text/javascript" src="http://citylife15/templates/citylife/scripts/equalcolumns.js"></script>
<noscript><div style="padding:2px; background-color:#cc0066; font-height:bold; color:white; border:1px #cc0099 solid;">Javascript must be enabled in your browser to use this page.<br />Please enable Javascript under your Tools menu in your browser.<br />Once javascript is enabled <a href="index.php">Click here</a> to go back to НИКОЛАЕВСКИЙ ГОРОДСКОЙ ПОРТАЛ «ЖИЗНЬ ГОРОДА»</div></noscript>
</head>
<body id="bg">
<div id="wrapper">
<div id="topmembersarea">
<div id="membersarea">
<div id="tools"> <a href="#" id="buttontools"></a>
<div id="stylebox"> <!-- служебная инфа -->
</div>
<div id="loginbox">
<jdoc:include type="modules" name="advert2" />
</div>
</div>
</div>
<div id="search">
<jdoc:include type="modules" name="advert1" />
</div>
</div>
<div id="header">
<div id="logo"><a href="./" class="logo"></a>
</div>
</div>
</div>
ГДЕ Я ТУПЛЮ?[РЕШЕНО] Проблема была в файле футера, в котором был не портированный из j1.0 код!