Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
joomla 1.5定义isFrontpage变量_Joomla - Fatal编程技术网

joomla 1.5定义isFrontpage变量

joomla 1.5定义isFrontpage变量,joomla,Joomla,我自己制作了模板,我想把if($tmpTools->isFrontPage()):放在其他预制模板中,但这不起作用,因为$tmpTools没有定义。因此,您也可以像这样为首页分配内容 <?php $menu = & JSite::getMenu(); if ($menu->getActive() == $menu->getDefault()) { ?> <!--your contents here --> <?php }

我自己制作了模板,我想把
if($tmpTools->isFrontPage()):
放在其他预制模板中,但这不起作用,因为$tmpTools没有定义。因此,您也可以像这样为首页分配内容

<?php 
    $menu = & JSite::getMenu();
    if ($menu->getActive() == $menu->getDefault()) { 
?>

<!--your contents here -->

<?php } ?>