Still in the beginning - i ca not find a topic on this, so another starter-question.
When i compile my php Application with this build.hxml
-main Application
-cp hx
-php .
it compiles without errors but i get an error in browser that a class is not found.
package ;
import com.skittles.haxe.util.DataBaseUtil;
class Application
{
public static function main()
{
com.skittles.haxe.util.DataBaseUtil.pdoTest();
}
}
the compiled php file:
<?php
class Application {
public function __construct(){}
static function main() {
com_skittles_haxe_util_DataBaseUtil::pdoTest();
}
function __toString() { return 'Application'; }
}
?>
and the error is
Fatal error: Class 'com_skittles_haxe_util_DataBaseUtil' not found in .../Application.class.php
How can i define the regular php import which is missing to compile properly?
Thanks again for helping at my first steps in haxe.