im new to joomla, but i managed to install Joomla on WAMP. I downloaded new temlate and like installed to my Joomla. After i clicked View Site is showing me new following error:
$slide){ ?>( ! ) Notice: Undefined variable: slide in C:\wamp\www\joomla\templates\themza_j17_01\index.php on line 57 Call Stack #TimeMemoryFunctionLocation 10.0005379968{main}( )..\index.php:0 20.53258227136JSite->render( )..\index.php:49 30.53508227568JDocumentHTML->parse( )..\application.php:253 40.53508227568JDocumentHTML->_fetchTemplate( )..\html.php:378 50.53578227920JDocumentHTML->_loadTemplate( )..\html.php:547 60.53738365208require( 'C:\wamp\www\joomla\templates\themza_j17_01\index.php' )..\html.php:488 " title="" alt="" />
my code is
Code: Select all
<div id="top_menu"><div id="topnav"><jdoc:include type="modules" name="position-1" /></div></div>
<div id="slider" class="nivoSlider">
<? if(!is_array($slides)){ ?><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide1.jpg" title="" alt="slide 1" />
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide2.jpg" title="" alt="slide 2" />
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide3.jpg" title="" alt="slide 3" />
<? }else{foreach($slides as $k=>$slide){ ?><img src="<?php echo $slide ?>" title="<?=$slideCaptions[$k]?>" alt="" /><? }} ?>
Pls help
Thanks Matt