We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Webtools can not load css if using different baseUri

When I set baseUri in config different than '/' - css and js files could not loads. I am using base URI '/phalcon-test-app/'

in view source I see this: <link rel="stylesheet" type="text/css" href="/css/webtools.css?v=3.0.3">

PHP 5.6.19 , Apache 2.4.18 on Windows 10

What I am doing wrong?

www



43.9k
Accepted
answer
edited Dec '16

Hi,

in app/config/config.php add an entry in 'application' array:

'staticUri' => '/phalcon-test-app/'

You may set baseUri to the same value ifyour experiencing duplication of webtools.php in the url. See that post:

https://forum.phalcon.io/discussion/15105/webtools-url-keeps-multiplying



2.6k

thanks! it helped!

Hi,

in app/config/config.php add an entry in 'application' array:

'staticUri' => '/phalcon-test-app/'

You may set baseUri to the same value ifyour experiencing duplication of webtools.php in the url. See that post:

https://forum.phalcon.io/discussion/15105/webtools-url-keeps-multiplying