trouble with including the header.php and footer.php files

Permalink
Having trouble with including the header.php and footer.php files

I did as stated here -http://www.concrete5.org/documentation/recorded-trainings/theme-dev...

My 'elements' directory is in:

public_html/themes/my_custom_theme/elements

Just can't get this to work.

Thanks

 
adajad replied on at Permalink Reply
adajad
You are probably doing something wrong, and it's hard to tell without any code to look at.

I also suggest you read this how-to: http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
MarkPrima replied on at Permalink Reply
At first I used
<?php $this->inc('elements/header.php'); ?>


as stated onhttp://www.concrete5.org/documentation/recorded-trainings/theme-dev... - which did not work then I used:

<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>


Now it all works and do not receive any PHP errors.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.