Are there any best practices for organizing and structuring template files in PHP?

When organizing and structuring template files in PHP, it is essential to maintain a clear and consistent directory structure to easily locate and manage template files. One common practice is to separate different types of templates into separate folders, such as "header", "footer", "sidebar", and "content". Additionally, using a naming convention for template files can help in quickly identifying their purpose.

/templates
    /header
        header.php
    /footer
        footer.php
    /sidebar
        sidebar.php
    /content
        home.php
        about.php