Commit Graph

21 Commits

Author SHA1 Message Date
John Was
62a7e397e0 fix the _only_ option in calls to FileHelper::findFiles() 2014-01-27 21:04:49 +01:00
Qiang Xue
ff8e78c655 Merge branch '2048-improve-messages-config-exceptions' of github.com:nineinchnick/yii2 into nineinchnick-2048-improve-messages-config-exceptions
Conflicts:
	framework/messages/config.php
2014-01-26 17:48:44 -05:00
Alexander Makarov
8bdc437bc2 Fixes #2079:
- i18n now falls back to `en` from `en-US` if message translation isn't found
- View now falls back to `en` from `en-US` if file not found
- Default `sourceLanguage` and `language` are now `en`
2014-01-23 04:51:17 +04:00
Qiang Xue
4fe0eeb1b6 refacotring. 2014-01-21 19:12:10 -05:00
Alexander Makarov
05db070b32 Adjusted #2008 2014-01-22 03:31:22 +04:00
Alexander Makarov
edf98ced99 Fixes #1973: Re-implemented solution for yii message/extract is now able to generate .po files 2014-01-14 23:09:37 +04:00
Qiang Xue
4d8d3eaf2c minor fix of exception display. 2014-01-13 22:16:11 -05:00
Qiang Xue
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Zander Baldwin
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
Qiang Xue
c1428a174a minor cleanup. 2013-04-12 07:25:37 -04:00
Qiang Xue
80dbaaca8b bug fixes. 2013-03-25 19:37:42 -04:00
Qiang Xue
1d48d01ef7 refactored View. 2013-03-20 22:03:13 -04:00
Alexander Makarov
2d5db95149 More on error handling:
- Correct exit code for require errors in CLI mode. It was 0 even in case of error.
- Solved handling fatals and displaying custom error template w/o output buffering.
- If XDEBUG is available, error screen will display trace (implementation inspired by Kohana and Nette).
- Added ErrorException to store/display type of the error and user-friendly messages.
- Fatals are still logged in PHP log.
- Turned off native display_errors since we're now catching all errors.
- Added reserving memory (256kb) . Can be removed safely. In case of removal we're losing only memory exhausted error when allocating last very small chunk of memory.
- Properly handled errors in __toString (exception can't be thrown in this case).
- In the YII_DEBUG===false mode it's bad to display exception name even in page title.
- In the YII_DEBUG===true mode it's still useful to get user-friendly message additionally to exception name.
2013-02-13 03:51:29 +04:00
Alexander Makarov
811880031c fixed YII_DEBUG exception view 2013-02-07 16:13:57 +04:00
Qiang Xue
1c375b9097 bug fixes. 2013-02-06 10:47:40 -05:00
Qiang Xue
af4455eb03 Finished console support.
Finished migrate command.
2013-02-03 19:37:29 -05:00
Alexander Makarov
ba4d9fc2b4 changed ->owner to ->context in error view 2012-06-10 12:00:03 +04:00
Alexander Makarov
6caad53ade Removed unnecessary markup from error views 2012-04-25 14:52:53 +04:00
Qiang Xue
b7e4bd3155 ... 2012-04-21 18:26:59 -04:00
Qiang Xue
7c06cc03d7 finished error handler. 2012-04-21 16:33:54 -04:00