You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1 - Setup index.html in view folder.
2 - Create 'elements' folder below view folder.
3 - Put 4 partial views in elements (ie. head, topbar, footer, scripts).
4 - Adjust index.html to 'include' the four partials in 'elements' folder.
5 - Setup controller to render index.html and get it to render successfully
including all partials.
6 - change some visible content of the partial file that is included as the 4th
included file in index.html
7 - Refresh once. You should see an error.
8 - Refresh a second time. The error will not show.
Narrative Desc:
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.
Original issue reported on code.google.com by dcu...@gmail.com on 8 Oct 2013 at 4:48
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
dcu...@gmail.com
on 8 Oct 2013 at 4:48The text was updated successfully, but these errors were encountered: