I use Mamp to work with Symfony, but I I can not see the logs
For Example
public function indexAction () {
$user = news User();
$form = $this->createForm(new UserType(), $user);
return array(
'formUser' => $form->createView()
);
}
In this example I misspelled the new User()
with news User()
, but I have a blank page in my browser.
If I do tail
in log file I can see the error.
Instead of Mamp, If i Use the symfony server php app/console server:run
, I can see the error in my Browser, but I can't use xdebug in PhpStorm (8.0.2)
If you see a blank page it means that error repoting is turned off. You can enable it either in php.ini or in your code with the following statement
error_reporting(E_ALL);
ini_set("display_errors", 1);