Skip to content

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

Description

@developer99

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions