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

image()

I may well be doing something wrong but I am trying to use the image() Tag from within Volt to build an HTML image tag. The image is hosted somewhere else so I wanted to set the second parameter ($local) to false, along these lines:

image("https://domain.com/pat/to/image.jpeg", false)

Unfortunately the helper still prepends the path to the image with the value from

$di->set('url', function () use ($config) { $url = new Phalcon\Mvc\Url(); $url->setBaseUri("/phalcon/"); return $url; }, true);

is this a known bug or am I going wrong somewhere?

yup. it is known bugs (https://github.com/phalcon/cphalcon/issues/1158).

as workaround you can try this: {{ tag.image("https://domain.com/pat/to/image.jpeg", false) }}