Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End What is best way to set up website template using php and tpl or html

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #145928

    Hello I would like to know the best way to link up my tpl files to my index.php file in my main root dir. just would like to get the index page to be able to pick up the tpl files like a normal website if some one can put me in the right direction were some information is on how to do this would be great have been looking around for one all morning

    here is structure at the moment. PHP is fairly new to me I am watching video docos

    index.php
    catalog
        controller
            /common
        view
            /javascript
            /theme
                /realestate
                    /stylesheets
                    /template
                        /common
                            /header.tpl
                            /footer.tpl
                            /home.tpl
                        /listings
                        /information
    

    The header file has links to the style sheet and meta tags etc

    #146054
    chrisburton
    Participant

    Personally, I’ve never heard of tpl files before.

    What I would do is setup header.php, footer.php and whatever else will be displayed on every page.

    Then, just include them by doing this:

    <?php include 'header.php'; ?>
    
      <!-- Unique content here -->
    
    <?php include 'footer.php'; ?>
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.