I am new to symfony. I did some tests (Symfony 2.0.13 with php5.3.8 in WAMP2.2) and read, but I'm a little confused with the environments.
When I go to LOCALHOST/Symfony/web/app_dev.php/demo/hello/Foo(app_dev means development environment, right?) I see the web debugging toolbar and clicking the profiler information on the Project Configuration tab, I see: Environment
Now I go to LOCALHOST/Symfony/web/app.php/demo/hello/Fooand in the web debugging toolbar (BTW, why am I seeing this toolbar now? Is it not a production environment? Can my users see this bar by default?) I also see, on the "Project Configuration" tab: Environment
It seems that this "demo" bundle is somehow related to "dev", regardless of which url is app_dev.php or app.php ??
In addition, I did some more tests: my local IP address is 192.168.153.1.
When I try to access:
http:
he says: "You are not allowed access to this file. For more information, check app_dev.php." So, well, if I edited the lines in app_dev.php and added my (external) IP address, I could access it.
BUT when I connect to
http:
IT SAYS THE SAME! It looks like my app.php is not running, and the app_dev.php application is running no matter what I type in the URL.
This is really confusing! I checked my htaccess and everything seems to be correct.
Can someone help me figure this out?
app_dev.php app.php, " " .
2012-05-02 EDIT
- . config_prod.yml :
framework:
profiler: { only_exceptions: false }
web_profiler:
toolbar: true
intercept_redirects: true
verbose: true
, app.php. , , :
$kernel = new AppKernel('prod', false);
$kernel = new AppKernel('prod', true);
app.php/WHATEVER, , , Apache, WebDebug PROD (app.php/WHATEVER)
, , , , config_prod.yml app.php . IP- app.php
...