Hello!
I'm having an issue that I haven't been able to resolve. I have two plugins, Nivek_Core and Nivek_Relationship. Inside of Nivek Core, I have defined some file functions to be used by any of the other plugins I may develop. Here is an example:
Nivek Core Code -
I am trying to call this procedure here:
Nivek_Relationship
When this runs, I am not seeing the output from
.
I am also not receiving any error messages in debug. Am I missing a step to allow the functions in the first plugin to be accepted in the second? (For plugin order, Nivek Core is before Nivek Relationship).
Thanks!
I'm having an issue that I haven't been able to resolve. I have two plugins, Nivek_Core and Nivek_Relationship. Inside of Nivek Core, I have defined some file functions to be used by any of the other plugins I may develop. Here is an example:
Nivek Core Code -
Code:
Nivek.Core.NivekFS.fileExists = function (path) {
console.log ('Checking if ' + path + ' exists');
if (this.fs.existsSync (path)) {
if (Nivek.testing) {
console.log (path + ' exists');
}
return true;
}
else {
if (Nivek.testing) {
console.log (path + ' doesnt exist');
}
return false;
}
}
I am trying to call this procedure here:
Nivek_Relationship
Code:
if (Nivek.Core.NivekFS.fileExists ('./relationship.json')) {
JSONString = Nivek.Core.NivekFS.readFile ('./', 'relationship.json');
}
When this runs, I am not seeing the output from
Code:
console.log ('Checking if ' + path + ' exists')
I am also not receiving any error messages in debug. Am I missing a step to allow the functions in the first plugin to be accepted in the second? (For plugin order, Nivek Core is before Nivek Relationship).
Thanks!