i have a global file that includes all my functions which are each neatly stored in separate files. before my main app runs, i inlclude this global file which in turns includes all my functions...
is this the best way? it requires that i make 2 extra reaches for my mouse everytime i write a function, i have to add it to the global file and upload it.
the other way is to only include each function as it is needed, but then i run into a problem that what if i do it inside a code block that gets executed twice? then i get an script aborting - "cannot redeclare function" error.. is there anyway around this redeclare error? anybody know a better way to organize their code around their functions? i'd hate to include files that declare functions on some pages but not others and then run in to the problem of having to mentally keep track of everyplace i do that.
thanks!