phalcon - How to get full path URL in phalconphp -


I'm new to Falcon and I need help because I can not find any way to get full path url An email message) such as: ""

Most can be found by using "/ auth / confirmRegistration"

using $ this-> url- & gt; GetStatic ('Auth / confirmRegistration')

The function may have a build but I can not find it, or should I share a global variable?

Thank you in advance

You can do two things per domain You can set the URL:

  & lt ;? Php $ url = new Falcon \ MVC \ url; // A relative base URI $ url-> Setting up the SetBase URI ('/ invoice /'); // Setting the full domain as the base URI $ url- & gt; Setbezuri ('// my.domain.com/'); // Setting the full domain as the base URI $ url- & gt; Setbezuri ('http://my.domain.com/my-app/');  

Or you can simply use it to get the host name and add the rest, eg:

  echo 'http: //' $ _SERVER ['SERVER_NAME'] '/ certification / confirmRegistration';  

Comments