Symfonys 2 app_dev.php gives a blank page while app.php works perfectly -
I'm trying to start a new project with Symfony2, I'm a simple hello controller from the world beginning:
class extends the default controller controller {public function index action () {$ name = 'world'; $ $ --- ($ MyointextBundle: Default: index.html.twig), return the array ('name' = & gt; $ name); }}
See:
{% extends ":: base.html.twig"%} {% block entity%} hello {{name} }! {% Endblock%}
When I open the site via app.php
everything is fine, but app_dev.php opening is nothing in the blank, white page APA main error log, nothing in the vhost error log and
app / log / dev.log
is also empty.
What's wrong?
Ap_dev works only when testing on the same server, which means that you can use your WAMP / XAMP etc. Are on
To open the app_dev.fpp, open it and reduce it:
if (isset ($ _ server) ['HTTP_CLIENT_IP']). Isset ($ _ SERVER ['HTTP_X_FORWARDED_FOR']) || In_array (@ $ _ SERVER ['REMOTE_ADDR'], array ('127.0.0.1', 'fe80 :: 1', ':: 1'))
) {header (' HTTP / 1.0 403 Forbidden '); Exit ('You do not have permission to access this file.' Check '.basename ( FILE ).' For more information. '); }
You can find the app_dev.php in the web / app_dev.php directory.
Good luck!
Comments
Post a Comment