$this->inc('elements\header.php'); pointing to the wrong directory.
Permalink
Hey,
I am new to Concrete5 theme development so I am following a Youtube course.
But when I want to use
It searches in the wrong directory as you can see:
My theme is located under: C:\wamp64\www\application\theme
and I am using the most recent version of Concrete5
Thanks in advance for any help.
I am new to Concrete5 theme development so I am following a Youtube course.
But when I want to use
$this->inc('elements\header.php');
It searches in the wrong directory as you can see:
My theme is located under: C:\wamp64\www\application\theme
and I am using the most recent version of Concrete5
Thanks in advance for any help.
![ConcreteOwl](/files/avatars/79508.jpg)
That code should be placed at the top of each of your page template files and not in your header.php file
I am not sure if I understand you right,
but I placed this:
inside the default.php
I also tried to reinstall the theme as recomended in other threads. But none of their solutions worked for me.
but I placed this:
<?php $this->inc('elements\header.php'); ?> <?php $this->inc('elements\footer.php'); ?>
inside the default.php
I also tried to reinstall the theme as recomended in other threads. But none of their solutions worked for me.
Try to use "/" instead "\"?
Nice ty.
I deleted the cache, reinstalled the theme and changed the slash.
Now it works... :D
I deleted the cache, reinstalled the theme and changed the slash.
Now it works... :D