Am I the only one having issues with the this?? I haven't got the exact code with me right now but it is something like the following... (this is the simplest of examples I am using to get up and running with TideSDK)
I have in my index.html...
<script>
Titanium.include("testLibrary.php")
</script>
<script>
var testresult = new testMethod();
document.write(testresult);
</script>
And the testLibrary.php file that I have in my resources directory is as simple as...
<?php
function testMethod()
{
$fixedResult = "The most basic php variable for display in the DOM";
return $fixedResult;
}
I have php switched on for packaging etc. It all worked fine when I included the php code within the index file so I know php is working, I just can't get include to work??