I have a main template index.html that "includes" 4 other partial templates (header, topbar, footer, bottomscripts) in a folder named 'elements'. Any time I change a static value for some text on the topbar partial and refresh the page I get an error (Include view file /elements/elements/footer.html not found). This is the next include that has to be compiled after topbar.
If I refresh the page again, all is ok.
Best I can tell $this->mainRenderFolder is changing from "index" which is the main file being compiled to "/elements/topbar" on that first refresh. If I force $this->mainRenderFolder to 'index' all works first time.
I have traced $this-mainRenderFolder value best I know how as a newbie to DooPHP but cannot find out where it is changing.
Hope someone can shed some light on this. It is annoying to have to do two refreshes when working on the site and changing the partials.
Thanks.
I have a main template index.html that "includes" 4 other partial templates (header, topbar, footer, bottomscripts) in a folder named 'elements'. Any time I change a static value for some text on the topbar partial and refresh the page I get an error (Include view file /elements/elements/footer.html not found). This is the next include that has to be compiled after topbar.
If I refresh the page again, all is ok.
Best I can tell $this->mainRenderFolder is changing from "index" which is the main file being compiled to "/elements/topbar" on that first refresh. If I force $this->mainRenderFolder to 'index' all works first time.
I have traced $this-mainRenderFolder value best I know how as a newbie to DooPHP but cannot find out where it is changing.
Hope someone can shed some light on this. It is annoying to have to do two refreshes when working on the site and changing the partials.
Thanks.