Parameter Error
Posted: Thu Aug 14, 2008 9:23 pm
So I looked up how to add parameters in the joomla wiki, and here's the code I'm using:
<?php if ($this->params->get( 'front' )){ ?>content<?php }else{ ?>pagecontent<?php } ?>
However it's throwing me this error:
Fatal error: Using $this when not in object context in /home/test/public_html/joomla/templates/test/index.php on line 45
What's the correct syntax for using a parameter?
<?php if ($this->params->get( 'front' )){ ?>content<?php }else{ ?>pagecontent<?php } ?>
However it's throwing me this error:
Fatal error: Using $this when not in object context in /home/test/public_html/joomla/templates/test/index.php on line 45
What's the correct syntax for using a parameter?