Cakephp - Get current base url (include domain )

/ Published in: PHP
Save to your folder(s)

Get current url. Include domiain. For example :http:// localhost/root_folder.

Copy this code and paste it in your HTML
  1. <?php echo $this->Html->url('/', true)?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.