Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The value of $this->mainRenderFolder is changing values #88

Open
GoogleCodeExporter opened this issue Jan 8, 2016 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant