If
1. a Prado application is run using performance or normal mode and
2. its index.php is using the precomposited pradolite.php (instead of the
regular prado.php) and
3. there are one or more Prado scripts referenced by the page or the controls
on them,
4. there were no "using('System.Web.JavaScripts.*')" calls anywhere in the
application code
then page generation will fail in the TJavaScript::JSMin() method.
This happens because said method tries to include the "jsmin.php" library, but
does so using a relative reference, specifying no path name. While this does
resolve correctly when prado.php is used (as in this case there's a distinct
TJavaScript.php included and invoked, which resides in the same directory as
said jsmin.php file), it will fail when using pradolite.php, which incorporates
also the TJavaScript.php code, but resides in the framework root directory, and
therefore will be unable to include the jsmin.php file without specifying its
container directory. Unless of course when the container directory has been
added to the search path using the above "using()" call.
Original issue reported on code.google.com by google...@pcforum.hu on 12 Feb 2012 at 8:19
Original issue reported on code.google.com by
google...@pcforum.hu
on 12 Feb 2012 at 8:19