Jump to content

Preventing file compiler during 2.x to 3.x upgrade?


MarcC
 Share

Recommended Posts

Hi all,

Am I correct in remembering that adding a namespace statement to the top of every template file will prevent the file compilation process from needing to run during a 2.x to 3.x upgrade? 

I had attempted this same upgrade previously on a site with many pages, but the upgrade seemed to fail. However, afterwards I realized it may have been the delay in compiling files rather than a failure of the upgrade. So I'd like to avoid the compilation process if possible.

Thank you for any tips! --Marc

Link to comment
Share on other sites

Oh funny, thanks. That's a pretty clever way to manage the configuration. So in case anyone else is wondering, it seems you can either add a namespace to your template files or just set $config->templateCompile to false in config.php. I do wonder what the implications are for either choice, or how future-proof it is to set this to false instead of adding the namespace.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...