Forums

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

Home Forums Back End PHP Include Question

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

    Hi.

    Just putting content in to my index.php

    my common php files are in mu common folder ie catalog/view/theme/robbie/template/common/header.php.

    what would be best for me to shorten the abbreviation in my include index.php.

    <?php include("catalog/view/theme/robbie/template/common/header.php"); ?>
    

    I don’t want if to be to long. would it be

    <?php include("../../../../common/header.php"); ?>
    
    #149143

    just learning how to create php from scratch again. released done index php wrong.

    This is new code working on for index.php

    <?php
    
    // for use in development mode 
    error_reporting(E_ALL); 
    
    define('BASE_PATH', dirname(realpath(__FILE__)) . '/');
    define('CATALOG_PATH', BASE_PATH . '/catalog');
    echo CATALOG_PATH;
    
    ?>
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.