i would explore the dirname (as well as pathinfo) functions in php. much more reliable. you might need to append a trailing slash.PHP Code:use Zencart\FileSystem\FileSystem;
$test = FileSystem::getInstance()->getPluginAbsoluteDirectory('EZ-Feeds');
echo "-------->" . $test . "<---------<br>";
$path_info = dirname(__DIR__, 3);
echo "-------->" . $path_info . "<---------<br>";
die('<br>' . __FILE__ . ':' . __LINE__);
i would advise you to use your own version number for your plugin; ie 1.0.0 and update as necessary. 1.5.7c is the zen-cart version, not your plugin version.


Reply With Quote

