View Single Post
  #1  
Old 01-22-2003, 01:27 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Problem with Directory Structure

It looks as though Smarty is setup to only use two directory levels, either ./ or /store for example.

We need to be able to do /store/directory however it doesn't seem to be working.

Back tracking the code in various places this example seems to be the standard for parsing directories:

if ($reg_globals) {
if (is_readable("../globals.php"))
require_once "../globals.php";
elseif (is_readable("./globals.php"))
require_once "./globals.php";
}

If this is the case, i think it's a serious design flaw. Has anybody had any problems with this before, and does anybody have suggestions on the most efficient fix.

I back tracked the problem right into the smarty class writing of the template_c files.

Thanks.
Reply With Quote