Reusable Content

Permalink
I just downloaded version 8.1 and am trying to create a theme. Everything is going very well except try as I may I cannot include reusable content such as header and footer. Any time I try to use $view->inc I do not get any errors but the content does not display. Since I am new to Concrete5 I am sure I am doing something wrong but can't figure out what.

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
At the top of your template files use this
<?php  
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>

At the bottom of the file use this
<?php   $this->inc('elements/footer.php'); ?>

And ensure your header.php and footer.php are sitting in a folder called 'elements' within your theme structure..
leemchildress replied on at Permalink Reply
Thanks weyboat. I would like to say my issue was related to some software glitch, but sadly I am just a doofus with a hard to see typo in my command. All resolved and working.