[ Question / Suggestion ? ] Custom PHP Function Sheet?
-
If I have a snippet that contains a PHP function and immediately uses that function, when I use the snippet, I am
- Declaring a function
- Calling said function
Alright, cool. The problem is… if I want to use that snippet a second time, I am
- Redeclaring a function (Why, hello there, fatal error.)
- Calling said function
So, I haven’t tried it yet, but I figure I can probably make all my functions on a file somewhere else and just have my snippets call for them as I need them–which is doable enough.
My question is, is there a better way I should or could go about this? Is there somewhere I can just list out my snippet functions and somehow have them exported/imported with the snippets or something to that effect so I can keep them together?
Thanks to anyone in advance for your help/input, and thanks @johan Steen for your awesome work. Wonderful plugin.
- The topic ‘[ Question / Suggestion ? ] Custom PHP Function Sheet?’ is closed to new replies.