$view->inc() looking in the updater folder instead of application theme folder

Permalink
Hi all

I'm trying to do the age-old thing of including header and footer elements in my theme, but $view->inc() is looking in the site's update folder, instead of in /application/themes/xyz, and so I get this error:

An unexpected error occurred.
include(/home/x/public_html/updates/concrete5.7.5.13_remote_updater/concrete/themes/xyz/inc/_footer.php): failed to open stream: No such file or directory


What am I doing wrong?

melat0nin
 
ob7dev replied on at Permalink Reply
ob7dev
I believe during c5's bootstrapping it checks whether to load core files normally or from the update folder.

But c5 is designed so that you don't need to touch the core folder (/concrete) to develop your site. If you are adding your own theme, add it to /application/themes instead of /concrete/themes and it should fix.
melat0nin replied on at Permalink Reply
melat0nin
Thanks for your reply.

The theme's already in the right place (/application/themes/xyz/); the problem seems to be that when I use $view->inc() concrete5 is trying to find it in /concrete/themes/xyz and is thus failing (hence the error message in the OP).
ob7dev replied on at Permalink Reply
ob7dev
What if you try $this->inc instead of $view->inc?