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
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
And do u have this at the bottom: