简体   繁体   中英

Dev visible in app_dev.php but not visible in app.php

I work on an app in symfony 2 which uses the sonata-admin bundle. I added 6 vars in my entity, and I can edit their value in my back-office to see the result in the front office.

Everything works fine when I go to my website in app_dev.php (and app_dev.php/admin for the back office)

But when I try to access to the website within the app.php, the changes don't show in my front office and I have a 404 error in the back. If I explicite the vars's typos in the $formMapper of the sonata admin's configureFormFields function, I can see my form but it doesn't get back the values already stored in the database.

I must precise I tried all clear cache options possible, with --env, --no-debug, and I tried to delete the app/cache/prod folder, create it again with the permissions. Apache logs do not show anything in particular.

Thank you for your help.

尝试清除缓存

 php bin/console cache:clear --no-warmup --env=prod

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM