whoshotyavideo / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

Change relative file reference to absolute #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current vQmod install (for opencart) will reference the vQmod script 
relatively:

`require_once('./vqmod/vqmod.php')`

instead, I propose the following:

`require_once(dirname(__FILE__) . '/vqmod/vqmod.php')`

In systems where opencart is being integrated with other systems (or a façade 
is being built on top of opencart) including the front controller will break 
unless the vqmod script is being absolutely included.

Original issue reported on code.google.com by shachibi...@gmail.com on 28 Nov 2013 at 2:05

GoogleCodeExporter commented 9 years ago
vQmod for OpenCart is designed specifically for the standard OpenCart platform 
not OC integrated into other systems. For those systems, it is up to the 
developer integrating to figure this out for their bespoke needs

Original comment by DJG6...@gmail.com on 28 Nov 2013 at 3:10

GoogleCodeExporter commented 9 years ago
I fail to see the logic here.

vQmod is designed to allow extension of OpenCart without changing the source 
files. For the suggested change (which is completely non-obtrusive) I need to 
change a vQmod source file. Do you expect me to use vQmod for vQmod?

Original comment by shachibi...@gmail.com on 28 Nov 2013 at 5:04

GoogleCodeExporter commented 9 years ago
No, because you can't edit the index.php files using vQMod. For your very 
unique situation, I fail to see why the STANDARD opencart installer needs to be 
in the format you have given. It's going to be of no use to almost every single 
OpenCart vQMod user - only those using your bespoke example which if it's 
already bespoke isn't going to take much to add in the code you've given. This 
won't be happening

Original comment by DJG6...@gmail.com on 28 Nov 2013 at 5:36