include plugins
Archived from the Xataface Users forum.
cbell — Sat Jun 16, 2012 4:44 pm
Hi, I am just starting to use xataface, and so far like it a lot!!! Following the examples I ran into a small problem, possibly a bug. Using the 1.3.2 version, I could not get the eightball template example to work, Smarty could not find my plugin directory. Looking at conf.inc.php, I noticed this section around line 215:
if ( $curr_dir_first ){
$include_path = “.”.PATH_SEPARATOR.$include_path;
}
I added an else clause with
} else {
$include_path = $include_path.PATH_SEPARATOR.”.”;
}
that seems to fix it.
I could not otherwise find where the app directory gets added to the include path. My fix is probably not right, as I think you would want to be able to override library files so “.” [or the app directory] should be inserted at the front of the include path.
Chris.
shannah — Wed Jun 20, 2012 9:45 am
It is strange that your application path isn’t already part of your include path. Usually PHP has the current directory (i.e. the directory where the script resides) in the include path by default. Why doesn’t yours?
What does your include path look like if you echo it before this if statement?
-Steve