Holen Sie sich Domain von URL CakePhp

Router::url('/', true) . 'img/example.png' (cakephp 2)
  
// localhost/domain/event/detail
$current_url = $this->request->here();
// => /domain/event/detail
Zidane (Vi Ly - VietNam)