power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

jsmin.php not found when using pradolite.php (and performance or normal mode) #387

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
patched in r3106

Original comment by ctrlal...@gmail.com on 12 Feb 2012 at 5:40