Hello!
I'm having a bit of an issue with template files. To keep the code clean, and easy to maintain, I'm using the handy include function. However this seems to cause a bit of an issue.
The error I'm receiving is:
"[User Warning] None of these templates can be found in theme 'ppm': ContentBox.ss
GET /
Line 728 in /path-to-public_html/framework/view/SSViewer.php"
The file ContentBox.ss DOES exist.
I read in another post that a way to fix this is delete the whole of the SS cache, which seems to work, but is a pain doing it everytime I add a new include.
For reference, here's the stack trace:
None of these templates can be found in theme 'ppm': ContentBox.ss
SSViewer.php:728
SSViewer->__construct(ContentBox)
SSViewer.php:1025
SSViewer::execute_template(ContentBox,HomePage_controller,Array,SSViewer_DataPresenter)
.cache.themes.ppm.templates.Page.ss:38
include(/path-to-public_html/silverstripe-cache/domaincouk/.cache.themes.ppm.templates.Page.ss)
SSViewer.php:927
SSViewer->includeGeneratedTemplate(/path-to-public_html/silverstripe-cache/domaincouk/.cache.themes.ppm.templates.Page.ss,HomePage_controller,,Array,)
SSViewer.php:994
SSViewer->process(HomePage_controller)
Controller.php:203
Controller->handleAction(SS_HTTPRequest,index)
RequestHandler.php:200
RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153
Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:219
ContentController->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:68
ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
RootURLController.php:129
RootURLController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:325
Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:143
Director::direct(,DataModel)
main.php:189
require_once(/path-to-public_html/framework/main.php)
index.php:66
I have no idea why it does this, but any help would be appreciated!
Thanks in advance!