Webroot problem in cakephp 3


#1

Hi
i would appreciate if anyone could help me

i placed my ckaephp 3 app on a shared host and i have problem.
href="<?php echo $this->webroot; ?> is not working

what can i do?


#2

https://book.cakephp.org/3.0/en/controllers/request-response.html#path-information

$request->getAttribute('webroot');


#3

You can use WWW_ROOT constant