Jump to content

Recommended Posts

Posted

Hi

I've just installed the blank option and I've been examining the file structure with a reverse engineering mindset trying to understand why things are like they are. I notice the home.php uses the php include tag to load basic-page.php

My question is this - Is it necessary to do things this way as per so called best practices? Will PW not function correctly if I did it another way like for example using index.php instead of home.php and having no include tags? is this the best way to do things for a typical multi page php website using includes?

Any advice greatly appreciated.

Simon

Posted

The only thing necessary is that you have files `/site/template/{template_name}.php`. Most templates use php files of the same name as the template, but you can also use an "alternative name" you can set for certain templates. The latter is certainly less common though.

What you do after that is 100% up to you, which is a boon as well as a pain at the same time. It's nice to not be prescribed how to do things, but it's bad to not have a fixed structure as each project may very well be build differently.

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
  • Recently Browsing   0 members

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