Jump to content

theme/template override config.php


stand-ground
 Share

Recommended Posts

I'm a bit confused. I'm creating a "theme"/"template" in site/templates/ which will take advantage of delayed output.

Why is the following placed in site/config.php instead of site/templates/config.php?

$config->prependTemplateFile = '_init.php';
$config->appendTemplateFile = '_main.php';

 

Link to comment
Share on other sites

hi @stand-ground and welcome to the forum,

4 minutes ago, stand-ground said:

Why is the following placed in site/config.php instead of site/templates/config.php?

Because these options are a site-wide config setting and site-wide config settings are placed in the config file, which is stored as /site/config.php - That's how pw is built.

  • Like 3
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...