Mixed pure and non-pure
Posted: July 30th, 2006, 4:43 am
Hi, I have a PHP asp.net web application, and I would like to use a charts package from within the app (http://www.maani.us/charts). My code behind page is a pure PHP.NET object Page, but the charts package is a normal PHP include.
If, I include "charts.php" it gives the error that includes are not supported by pure code. I read the Phalanger Language Extensions document and it says:
"In the pure mode, the application comprises of a set of source files free of global code and inclusions. All
declarations stated in any source file are visible from any other source file."
So, my charts.php file is within the web project, however if I call InsertChart in my code behind page, I get the error:
"Call to undefined function: 'InsertChart'"
I do not completely understand the statement "comprises of a set of source files free of global code and inclusions." How is this set created... I assumed it was just the files in the web directory.
Does this mean I need to independently compile the charts package with non-pure and then reference that assembly from the web project?
Thanks!
Kevin
If, I include "charts.php" it gives the error that includes are not supported by pure code. I read the Phalanger Language Extensions document and it says:
"In the pure mode, the application comprises of a set of source files free of global code and inclusions. All
declarations stated in any source file are visible from any other source file."
So, my charts.php file is within the web project, however if I call InsertChart in my code behind page, I get the error:
"Call to undefined function: 'InsertChart'"
I do not completely understand the statement "comprises of a set of source files free of global code and inclusions." How is this set created... I assumed it was just the files in the web directory.
Does this mean I need to independently compile the charts package with non-pure and then reference that assembly from the web project?
Thanks!
Kevin