$this->render from single page looking in wrong place.
Permalink
Has anyone else had a problem with single pages on 8.1 where you use
$this->render('/myfolder/myview'); (as per example inhttps://documentation.concrete5.org/developers/working-with-pages/si... and it sending you to the wrong place,
My controller/views are all under the applications folder, but when I call the render it actually is looking under the concrete folder...
In my case I get:
An unexpected error occurred.
include(<...site path...>\concrete/single_pages/phonebookv1/person.php): failed to open stream: No such file or directory
Also - not sure if this is a problem or not, but I found that if I created the single page inside the admin/dashboard - before the controller php existed, it was never called, only the view page was called. Tried it 3 times to make sure I wasn't seeing things.
$this->render('/myfolder/myview'); (as per example inhttps://documentation.concrete5.org/developers/working-with-pages/si... and it sending you to the wrong place,
My controller/views are all under the applications folder, but when I call the render it actually is looking under the concrete folder...
In my case I get:
An unexpected error occurred.
include(<...site path...>\concrete/single_pages/phonebookv1/person.php): failed to open stream: No such file or directory
Also - not sure if this is a problem or not, but I found that if I created the single page inside the admin/dashboard - before the controller php existed, it was never called, only the view page was called. Tried it 3 times to make sure I wasn't seeing things.