about including files in my theme folder 5.6.1

Permalink
I don't have a problem including my header and footer, i.e.

$this->inc('elements/header.php');


But if I try to include any other files in my "elements" folder (which is inside of my theme folder, like this themes/mytheme/elements/test.php)

$this->inc('elements/test.php');


It appears that concrete5 is trying to go into my "concrete" folder instead of my themes folder?

Warning: include(/home/myname/public_html/dev/concrete/themes/mytheme/elements/test.php) [function.include]: failed to open stream:


I actually want it to go to

/home/myname/public_html/dev/themes/mytheme/elements/test.php


(i.e. no "concrete")...

 
ScottSandbakken replied on at Permalink Best Answer Reply
ScottSandbakken
I do this regularly and have not had any issues. Have you cleared your cache?
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
Also, make sure that you are including relative to the template page. i.e. If you are in the elements folder, the path is still elements/file.php.
nicolechung replied on at Permalink Reply
Yes, I turned off the cache and it works now (I'm in development, anyhow).

I though the cache was going to be gone in 5.6.1? At any rate, I guess they had to leave it in...
ScottSandbakken replied on at Permalink Reply
ScottSandbakken
The cache isn't gone, it has been updated to work better. One of the updates (done in 5.6.0.1, I believe) is that the over-rides path is now cached. I believe that is what was causing your problem.
nicolechung replied on at Permalink Reply
Ahhhhh....got it.