Come accedere alla variabile di debug in app/config/app.php
dal mio controller per vedere se sono in modalità di debug?laravel come leggere app/config/variabile debug app.php
<?php
|
/* | if ($this->user->id)
|-------------------------------------------------------------------------- | {
| Application Debug Mode | // Save roles. Handles updating.
|-------------------------------------------------------------------------- | $this->user->saveRoles(Input::get('roles'));
| |
| When your application is in debug mode, detailed error messages with | // Redirect to the new user page
| stack traces will be shown on every error that occurs within your | return Redirect::to('admin/users/'.$this->user->id)->with('success', Lang::get('admin/users/messages.cre
| application. If disabled, a simple generic error page is shown. |ate.success'));
| | }
*/ | else
| {
'debug' => true,
Ho ottenuto undefined undefined nction config() ... Sono su Laravel 4.2. – Phil
Oh grazie! Lo vedo anche qui http://laravel.com/docs/4.2/configuration – Phil