D
D
Dmitry Smolyakov2016-12-12 23:46:21
symfony
Dmitry Smolyakov, 2016-12-12 23:46:21

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

2 answer(s)
D
Dmitry Smolyakov, 2016-12-13
@spudro

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.

V
Victor Golovko, 2016-12-13
@siptik

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 question

Ask a Question

731 491 924 answers to any question