cakephp 3.3 links are receiving the "var/www/html" url

Asked

Viewed 78 times

0

I’m having the following problem, in implementing the site all links that were generated by cakephp functions like:

<?= $this->Html->image('logo.png', ['url'=>'/', 'id'=>'logo']) ?>

Are receiving var/www/html, and repeat the address at the end getting that way: "http://meusite.com.br/var/www/html/meusite.com.br/web/" someone has had a similar problem?

I came to find something on the internet but the person in question reinstalled everything.

  • See if this helps: http://stackoverflow.com/a/9486191/6101515

  • did not come to solve the problem, but gave a light, my constants ROOT, and CORE_PATH, are returning /var/www/html/meusite.com.br/web and adding this stretch after the domain and before the link I added getting http://meusitecom.br/var/www/html/graficanobairro.com.br/web/folder/myfile file`, cakephp should use one of these directly or indirectly in the <?= $this->Html->link function ("name", "folder/myfile") when mounting links

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.