Hello,
I've got a problem and I'm not able to find the mistake -- of course as I write here ^^ So I hope you can help me find my mistake.
I created a new basic Phalcon app - using namespaces, like my previous one. I copied most of the basic set up code from the old one.
But now my css and js files are not loaded, because Phalcon is adding an additional basic path into the URL.
So when I'm doing something like this: {{ stylesheet_link('css/bootstrap.min.css') }} The code in the rendered file looks like this: <link rel="stylesheet" type="text/css" href="slipbox/css/bootstrap.min.css" />
This does not work, because it tries to parse the URL that looks like this: "https://localhost/slipbox/slipbox/css/bootstrap.min.css" Which is obviously wrong.
When I do something like this: $headerCollection = $this->assets->collection('header'); $headerCollection->setPrefix('https://localhost/slipbox/public/'); $headerCollection->addCss('css/bootstrap.min.css'); it works!
But I don't want to use collections.
Has anyone an idea where I could fix the problem centrally? Where does this second 'slipbox' come from? I'm only setting a basicUri at the beginnning. Everything else is also working. So I'v got no clue.
Thanks a lot Aljoscha