PHP include layout template /templating system
PHP include layout template /templating system
Out of context: Reply #7
- Started
- Last post
- 10 Responses
- Hue0
my hataccess file is just removing the .php with the following code: RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]and my includes are <?php include('includes/header.php'); ?> I have tried defining the root with $_SERVER['DOCUMENT_ROOT'] but it isnt working with pages within a folder e.g fonts/font1