include plugins

A place for users and developers of the Xataface to discuss and receive support.

include plugins

Postby 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.
cbell
 
Posts: 1
Joined: Sat Jun 16, 2012 4:01 pm

Re: include plugins

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved