Carsten Brandt
71782b344e
Changed existing code to match the changes regarding response
12 years ago
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
12 years ago
Qiang Xue
75b614787c
doc clarification.
12 years ago
Carsten Brandt
82c978f86a
draft idea of action based responses
12 years ago
Qiang Xue
5a8e4b648b
Added XmlResponseFormatter.
12 years ago
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.
12 years ago
Qiang Xue
03e07f4340
cleaned up "use" statements.
12 years ago
Qiang Xue
d4910ee4f5
Put back Yii::getObjectVars() and fixed infinite loop in Object::toArray().
12 years ago
Qiang Xue
b184a75d68
Recursively return previous exceptions in toArray().
12 years ago
Qiang Xue
df0779fb14
Added previous exception in toArray().
12 years ago
Qiang Xue
172f40aada
Removed headers in ErrorHandler.
12 years ago
Qiang Xue
0c3bcc467d
Moved toArray() from YiiBase to ArrayHelper.
12 years ago
Qiang Xue
a951e1c8e1
Replaced Jsonable with Arrayable.
...
Added support for different response formats.
Support for error response in different formats.
12 years ago
Qiang Xue
f3cc5d1edc
Fixes for issue #536 : refactored error handler.
12 years ago
Carsten Brandt
12e5f62c0b
Errorhandler, manually load classes
...
load ErrorException manually because autoloading them will not work
when error occurs while autoloading a class
12 years ago
Qiang Xue
420637443c
Refactored the way of sending response in controller actions.
12 years ago
Qiang Xue
901d753c9a
doc improvement.
12 years ago
Qiang Xue
ad218c6719
moved HttpException to web.
12 years ago
Qiang Xue
f14774dfb6
Fixes issue #276 : Enable Response::sendFile() to operate on resources
12 years ago
Qiang Xue
9806563f7f
Minor refactoring.
12 years ago
Qiang Xue
551e00bae3
Renamed methods and events in Application.
12 years ago
Qiang Xue
f2d477dce6
Response WIP
12 years ago
resurtm
7a7d2a9c06
CS fixes.
12 years ago
Qiang Xue
29ac3aeea6
Added Jsonable support.
12 years ago
Qiang Xue
b455f2c97a
Fixed test break.
12 years ago
Qiang Xue
ba0da059da
response WIP
12 years ago
Qiang Xue
b7c1f94977
Fixed bug about setting default path aliases.
12 years ago
Qiang Xue
cbf642d931
Added support for locale-dependent decimal and grouping separators.
12 years ago
Qiang Xue
21160338d7
Implemented default controller namespace.
12 years ago
Qiang Xue
8435285c19
doc fix.
12 years ago
Qiang Xue
22357befad
Added "@runtime" and "@vendor" aliases.
12 years ago
Qiang Xue
36bbfd54ca
Implemented "@app/runtime" alias.
12 years ago
Qiang Xue
c9a7119b91
Fixes issue #467 : allow view file to be absent as long as the themed version exists.
12 years ago
Qiang Xue
e1cde74b7b
Fixed doc.
12 years ago
Carsten Brandt
2f051e9dab
Use class constants for Event declatration in ActionFiler
12 years ago
Qiang Xue
5e8154ed7f
Removed unused method.
12 years ago
Carsten Brandt
8b6447876a
refactored numberformatting in base\Formatter
...
added decimalSeparator and thousandSeparator properties.
issue #48
12 years ago
Carsten Brandt
07011a2542
Fixed typos in new Formatter classes
12 years ago
Qiang Xue
f690f0db13
Fixes issue #441 : InvalidRequestException should be HttpException
12 years ago
Qiang Xue
2f1021830d
Added "formatter" app component.
12 years ago
Qiang Xue
9a97037012
Finished Formatter.
12 years ago
Qiang Xue
000fdc3de0
formatter WIP.
12 years ago
Carsten Brandt
3ac84240b6
added note about dependency to registerJsFile
...
Fixes #373
12 years ago
Carsten Brandt
a6c251d2ab
Adjusted vendor dirs of example applications
...
- update composer json to chosse right path
- set vendorPath in application config if not default
12 years ago
Carsten Brandt
a56ec89685
Fixed typo in ErrorHandler
...
`$this` -> `$self`
12 years ago
resurtm
b525d9c720
Fixed stack trace bug and added class/method call information.
12 years ago
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
12 years ago
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
12 years ago
resurtm
a0def9c0ca
Better view/template variables naming and more superglobals.
12 years ago
resurtm
731cbf8980
New error page WIP.
12 years ago