Re: Need help with mvt:do function
Well, of course Bruce is correct!
Seriously, I think he is and it is really a related but slightly different topic too. I think there are two reasons. Security and convenience.
Bruce described some security concerns, but my own idea is a question: why would you use php style insecure scripting when you can contain your wild oates (so to speak) and keep your ideas in a safe boundry. If your mivascripts are built outside the Miva "framework" you leave those scripts open like php would -- IMO.
On the convenience topic, if you don't create your function in a Miva module then you may be needing to reinvent the wheel over and over. I've rarely wrote a useful independent mivascript where I didn't need or want to tap into the Miva API. Even the in uncompiled days. If I knew the function existed why rewrite it? The Miva API is easily accessed in a module where in an independent script I MUST (re)write the same function myself or throw in tons of overhead to access what is already available. Might not apply to you but the latter is problematic if the Miva server/store is different than a standard config.
I'll stop, I could rant even more...
Scott
Well, of course Bruce is correct!
Seriously, I think he is and it is really a related but slightly different topic too. I think there are two reasons. Security and convenience.
Bruce described some security concerns, but my own idea is a question: why would you use php style insecure scripting when you can contain your wild oates (so to speak) and keep your ideas in a safe boundry. If your mivascripts are built outside the Miva "framework" you leave those scripts open like php would -- IMO.
On the convenience topic, if you don't create your function in a Miva module then you may be needing to reinvent the wheel over and over. I've rarely wrote a useful independent mivascript where I didn't need or want to tap into the Miva API. Even the in uncompiled days. If I knew the function existed why rewrite it? The Miva API is easily accessed in a module where in an independent script I MUST (re)write the same function myself or throw in tons of overhead to access what is already available. Might not apply to you but the latter is problematic if the Miva server/store is different than a standard config.
I'll stop, I could rant even more...
Scott
Comment