$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:
What am I doing wrong?
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?
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).
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).
What if you try $this->inc instead of $view->inc?
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.