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

get after Url

The framework itself is there a way to provide to get back the Url?Similar to the $_SERVER [' HTTP_REFERER '] the value of the same



98.9k
Accepted
answer

You can use getHeader()

<?php

$referer = $this->request->getHeader('REFERER');