forum > Construing a site w/ haxe/PHP?
-
Micah Apr 07 at 13:28
Please excuse the noobish quality of my question, but I was wondering what would be the best way to go about construing a website using Haxe/PHP.
My problem is basically this: I create the home page (index.hx) in which PHP generates all the HTML. I compile it in Haxe then throw index.php and the "lib" folder to where they're supposed to be, and it works just fine. However, when making another web page (like say an "about_us.php"), I realize that Haxe can't simply compile "about_us.hx" into "about_us.php", so I'm left with two "lib" folders with what is essentially the same classes, interfaces, enums, etc.
So am I going about this the wrong way? Should Haxe-powered websites be created with "hand-written" HTML (as opposed to using PHP to generate HTML) and treat PHP as one big application to be referenced in various places or something? Most of the Haxe tutorials really only cover generating a single page, but not multiple ones like a full-fledged site.
Hopefully I made sense, and hopefully you guys can help me out! :)