My local project is working perfectly but when uploading it to hosting, many routes created with Url :: to () are failing me, both with images and with routes to controller actions. Renderpartial doesn’t work for me either.
My project is uploaded to production and commented on the first 2 lines of web / index.php
// defined (‘YII_DEBUG’) or define (‘YII_DEBUG’, true);
// defined (‘YII_ENV’) or define (‘YII_ENV’, ‘dev’);
The folder structure is as it was in local. I don’t know if the production structure needs to be changed.
Url::to(’@web/img/…’) this is correct in production??