The site was not loading up stylesheets or javascript files on my local Windows development machine.
I was able to trace the issue back to use of dirname() which returns \ instead of / on Windows. Specifically, line 795 of includes/xlsws/_functions.php I think the best solution is to create a new function in includes/qcodo/_core/framework/QApplicationBase.class.php that runs the dirname() function but replaces backslashes with forwardslashes.
public static function GetScriptDirectory() {
return str_replace("\\", "/", dirname(QApplication::$ScriptName));
}
I was able to fix the second issue (qcodo's javascript files not loading) by removing __SUBDIRECTORY__ from line 63 of includes/configurationpaths.inc.php
The site was not loading up stylesheets or javascript files on my local Windows development machine.
I was able to trace the issue back to use of
dirname()
which returns\
instead of/
on Windows. Specifically, line795
ofincludes/xlsws/_functions.php
I think the best solution is to create a new function inincludes/qcodo/_core/framework/QApplicationBase.class.php
that runs thedirname()
function but replaces backslashes with forwardslashes.and referencing it in _functions.php:
Now all of my stylesheets are loading as is most of the javascript (some of them link to website.com/website.com/... for some reason)