Question : get domain from url cakephp
Answered by : vi-ly
Router::url('/', true) . 'img/example.png' (cakephp 2)
// localhost/domain/event/detail
$current_url = $this->request->here();
// => /domain/event/detail
Source : | Last Update : Tue, 20 Oct 20