views:

144

answers:

1

Hi

I'm very fresh to PHP world.

Trying to do as I think very simple thing(?)- include external file in Joomla template.

<?php include_once('templates/' echo $this->template  '/includes/footer.php'); ?>

But unfortunately it is not working.

can someone please tell me how correct string should look like?

Thank you in advance

+2  A: 

The string should look like this:

<?php include_once('templates/'.$this->template.'/includes/footer.php'); ?>

The manual on strings in PHP can be found here: String

Pekka