View Single Post
  #8  
Old 03-18-2015, 05:35 AM
  zychen's Avatar 
zychen zychen is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 48
 

Smile Re: Using Extra Resources in XC5

My file is a .wsdl (or .xml) file accessed by my local module code.

I might have found the best way to do this if there isn't a dedicated folder for such files.
I have found some handy directory constants leftover from LiteCommerce in /top.inc.PHP53.php so I have used one of those.

Here's what I used:
PHP Code:
$path LC_DIR_MODULES "[YOUR_ID]/[MODULE_ID]/[Relative Path to Extra File]" 

Do you think this is a good way?

Thanks Tony and Alex!
__________________
X-Cart 5.1.10
X-Cart Next 5.2.1 Beta
Reply With Quote