Answer the question
In order to leave comments, you need to log in
How to change the configuration to immediately start with the dev version?
By default, the page starts with app.php, and to enter the development mode, you need to go through app_dev.php.
How to make it default to app_dev.php.
Answer the question
In order to leave comments, you need to log in
I went through .htacces in the web folder and found a way.
# Rewrite all other queries to the front controller.
RewriteRule ^ %{ENV:BASE}/app.php [L]
Replace app.php and it will work.
in app.php:
Use session or config
if($config['env']=='dev'){
redirect(app_dev.php);
}
But why? any framework supports environments. Don't reinvent the wheel
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question