Problem with include

Permalink
Hello all,
I'm trying to convert a static theme to C5 using the instructions provided by Andrew (http://www.concrete5.org/documentation/recorded-trainings/theme-dev... and Jordan (http://www.concrete5.org/documentation/how-tos/designers/making-a-theme-from-start-to-finish/). It all was going quite smoothly until the moment I had to remove the header and footer parsts of my default.php file, to make them separate elements included into the default file. As I did that, the header and footer stopped loading with the following error:
---
Warning: include(/kiedybylammala_c5/concrete/themes/kiedy_theme/elements/header.php) [function.include]: failed to open stream: No such file or directory in /kiedybylammala_c5/concrete/core/libraries/view.php on line 484
---
My theme is placed into the "themes"folder in my root. It has a folder "elements", where the header and footer are located. It also has a "view.php" file. Why does 'include' look for the header in the /concrete/themes/ directory, even though the theme resides in a different place? Could somebody please tell me where I did wrong, since I do not know PHP well...

Thanks in advance,

Mikołaj

mikolajkamler
 
Steevb replied on at Permalink Reply
Steevb
Do u have, at he top of your default.php this:
<?php  defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php');?>


And do u have this at the bottom:
<?php  $this->inc('elements/footer.php'); ?>
mikolajkamler replied on at Permalink Reply
mikolajkamler
Yes, I do.