I have made a calc element with several ajax watch elements and because there are several common areas of code I made some into functions in the calc element nd passed the watch elements to the function.
All works beautifully doing the calculation and displaying the result...until I save, at which point I get a 500 server error. So I stripped it back and just added a simple function thats not even called
function foo()
{
echo "I don't exist until program execution reaches me.\n";
}
and just that causes the 500 on save
Is there any way to include functions in calc elements or do we have to go through each each element in its on block of code
All works beautifully doing the calculation and displaying the result...until I save, at which point I get a 500 server error. So I stripped it back and just added a simple function thats not even called
function foo()
{
echo "I don't exist until program execution reaches me.\n";
}
and just that causes the 500 on save
Is there any way to include functions in calc elements or do we have to go through each each element in its on block of code