Hi,
I have created my web application with the Web AppBuilder Developer edition, downloaded the zip file and customized the index.html file. Everything works fine until I change the name to index.php. I am doing this because I have some custom php code that I want to include in the file. I can name it index2.html but <anything>.php seems to not work. Can I do this? and if so, how?
Solved! Go to Solution.
This is caused by getPath function in env.js. In this function there is path check
/\.html$/.test
Could you change the html to php in this line to have a try?
This is caused by getPath function in env.js. In this function there is path check
/\.html$/.test
Could you change the html to php in this line to have a try?
That works very well and if I add an "OR" in there (line 162) with the double-pipe I could also continue to use html pages. Thanks very much for your attention to this!
} else if (/\.php$/.test(fullPath.split('/').pop()) || /\.html$/.test(fullPath.split('/').pop())) {