access templates relative to the php scripts
still use /foo/index.php when /foo/bar is accessed