I also, tried this, but it returns and unchaged value as string.
I'm still using phalcon 2, but I'm going to upgrade as soon as I fixed this issue.
Any help, would be appriciated.
And you sure that you have in your views directory mail folder and newPassrequest.volt?
For me code above works totally fine.
It was solved by renaming the mail templates from html to volt, I thought it would work on html as well.
I have same requirement but i dont have files, i need to render this from string not a file. i tried to achive that but with no luck ,is this is possible?
compileString function doesn't take params so it dosent help me.
I dont think it's possible, behind the scenes phalcon will parse the volt file and create a plain cached php file, which will be used for the final view rendering.