Commit Graph

106 Commits

Author SHA1 Message Date
Carsten Brandt
71782b344e Changed existing code to match the changes regarding response 2013-06-16 18:52:56 +02:00
Carsten Brandt
b138199c59 implementation of Response tied to actions
Result of a discussion with @qiangxue
- there is not global Yii::$app->response anymore, every action has
  dedicated response class
- implementation allows using HMVC pattern now, nested actions do not
  interfer
2013-06-16 18:12:27 +02:00
Qiang Xue
75b614787c doc clarification. 2013-06-16 11:31:20 -04:00
Carsten Brandt
82c978f86a draft idea of action based responses 2013-06-16 17:04:28 +02:00
Qiang Xue
5a8e4b648b Added XmlResponseFormatter. 2013-06-15 15:19:00 -04:00
Carsten Brandt
5ed52b98a1 renamed Application::handle() to handelRequest()
Name make more sense imo as it is not clear what it handles otherwise.
Removed unused method processRequest form console app and also refactored
console Application to be more similar to web Application.
2013-06-15 14:10:47 +02:00
Qiang Xue
03e07f4340 cleaned up "use" statements. 2013-06-14 22:42:55 -04:00
Qiang Xue
d4910ee4f5 Put back Yii::getObjectVars() and fixed infinite loop in Object::toArray(). 2013-06-14 17:23:37 -04:00
Qiang Xue
b184a75d68 Recursively return previous exceptions in toArray(). 2013-06-14 17:15:28 -04:00
Qiang Xue
df0779fb14 Added previous exception in toArray(). 2013-06-14 17:10:36 -04:00
Qiang Xue
172f40aada Removed headers in ErrorHandler. 2013-06-14 17:06:01 -04:00
Qiang Xue
0c3bcc467d Moved toArray() from YiiBase to ArrayHelper. 2013-06-14 17:01:20 -04:00
Qiang Xue
a951e1c8e1 Replaced Jsonable with Arrayable.
Added support for different response formats.
Support for error response in different formats.
2013-06-14 16:26:33 -04:00
Qiang Xue
f3cc5d1edc Fixes for issue #536: refactored error handler. 2013-06-14 08:19:45 -04:00
Carsten Brandt
12e5f62c0b Errorhandler, manually load classes
load ErrorException manually because autoloading them will not work
when error occurs while autoloading a class
2013-06-14 10:49:50 +02:00
Qiang Xue
420637443c Refactored the way of sending response in controller actions. 2013-06-13 23:39:18 -04:00
Qiang Xue
901d753c9a doc improvement. 2013-06-11 08:21:50 -04:00
Qiang Xue
ad218c6719 moved HttpException to web. 2013-06-10 17:08:26 -04:00
Qiang Xue
f14774dfb6 Fixes issue #276: Enable Response::sendFile() to operate on resources 2013-06-10 16:37:35 -04:00
Qiang Xue
9806563f7f Minor refactoring. 2013-06-10 11:26:56 -04:00
Qiang Xue
551e00bae3 Renamed methods and events in Application. 2013-06-09 22:29:08 -04:00
Qiang Xue
f2d477dce6 Response WIP 2013-06-09 09:47:41 -04:00
resurtm
7a7d2a9c06 CS fixes. 2013-06-07 22:41:11 +06:00
Qiang Xue
29ac3aeea6 Added Jsonable support. 2013-06-07 11:02:26 -04:00
Qiang Xue
b455f2c97a Fixed test break. 2013-06-07 08:08:40 -04:00
Qiang Xue
ba0da059da response WIP 2013-06-07 08:00:47 -04:00
Qiang Xue
b7c1f94977 Fixed bug about setting default path aliases. 2013-06-05 08:28:36 -04:00
Qiang Xue
cbf642d931 Added support for locale-dependent decimal and grouping separators. 2013-06-04 17:21:40 -04:00
Qiang Xue
21160338d7 Implemented default controller namespace. 2013-06-02 22:31:17 -04:00
Qiang Xue
8435285c19 doc fix. 2013-06-02 22:19:38 -04:00
Qiang Xue
22357befad Added "@runtime" and "@vendor" aliases. 2013-06-02 15:19:29 -04:00
Qiang Xue
36bbfd54ca Implemented "@app/runtime" alias. 2013-06-02 07:29:29 -04:00
Qiang Xue
c9a7119b91 Fixes issue #467: allow view file to be absent as long as the themed version exists. 2013-05-31 08:43:15 -04:00
Qiang Xue
e1cde74b7b Fixed doc. 2013-05-30 07:57:06 -04:00
Carsten Brandt
2f051e9dab Use class constants for Event declatration in ActionFiler 2013-05-29 03:40:18 +02:00
Qiang Xue
5e8154ed7f Removed unused method. 2013-05-28 21:07:35 -04:00
Carsten Brandt
8b6447876a refactored numberformatting in base\Formatter
added decimalSeparator and thousandSeparator properties.
issue #48
2013-05-29 02:19:08 +02:00
Carsten Brandt
07011a2542 Fixed typos in new Formatter classes 2013-05-29 01:50:09 +02:00
Qiang Xue
f690f0db13 Fixes issue #441: InvalidRequestException should be HttpException 2013-05-28 19:24:08 -04:00
Qiang Xue
2f1021830d Added "formatter" app component. 2013-05-28 18:58:35 -04:00
Qiang Xue
9a97037012 Finished Formatter. 2013-05-28 18:55:26 -04:00
Qiang Xue
000fdc3de0 formatter WIP. 2013-05-28 17:27:37 -04:00
Carsten Brandt
3ac84240b6 added note about dependency to registerJsFile
Fixes #373
2013-05-28 00:13:52 +02:00
Carsten Brandt
a6c251d2ab Adjusted vendor dirs of example applications
- update composer json to chosse right path
- set vendorPath in application config if not default
2013-05-27 00:22:42 +02:00
Carsten Brandt
a56ec89685 Fixed typo in ErrorHandler
`$this` -> `$self`
2013-05-26 14:21:06 +02:00
resurtm
b525d9c720 Fixed stack trace bug and added class/method call information. 2013-05-26 16:07:14 +06:00
Carsten Brandt
689080519e Added support for previous exceptions
PHP supports exception stacks since 5.3 so we should use it.
Also Errorhandler is now able to display the stack: #297
2013-05-26 04:38:13 +02:00
Carsten Brandt
0ef40b28d1 adjusted Exception error page header and title
make sure all information is displayed
Fixes comment by @creocoder issue #408
https://github.com/yiisoft/yii2/pull/408#issuecomment-18454179
2013-05-26 02:34:38 +02:00
resurtm
a0def9c0ca Better view/template variables naming and more superglobals. 2013-05-25 23:11:17 +06:00
resurtm
8958693494 Merge branch 'master' of github.com:yiisoft/yii2 into error-page 2013-05-25 21:53:43 +06:00