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

pb with false argument in image tag

Phalcon 1.2.3 using:

{{ image(img,false) }}

where

img="https://lorempixel.com/1000/400/sports/1"

generates:

<img src="/phalcon/foundation/https://lorempixel.com/1000/400/sports/1">

I saw an issue on github (https://github.com/phalcon/cphalcon/issues/1158) saying that this was fixed in 1.3.0 branch. But what for stable 1.2.3 ?



43.9k

OK, workaround here: https://forum.phalcon.io/discussion/901/image-

Just use

{{ tag.image(img,false) }}