Commit Graph

32 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
ef3a09c126 update the documents for the new MVC API and some of its new features but not finished yet, README big examples and _examples/mvc/login is are yet updated and I'm thinking of removing the big examples on README.md, they exist on the _examples/mvc updated.
Former-commit-id: c2938d4bcaa3520744526f7975ee3cce632499b3
2017-12-22 10:18:31 +02:00
Gerasimos (Makis) Maropoulos
8fa33a9882 fix typo
Former-commit-id: 1aaca0e3473003d00f19af9d16cf6f29f3f526a2
2017-12-20 18:10:57 +02:00
Gerasimos (Makis) Maropoulos
254a4ede95 add explanation why the 'globalVisitorsController' example is a Singleton, because it was not clear for new gophers previously.
Former-commit-id: 9267c415e53eeb00adadf6fde9e0aeeb415cf24a
2017-12-20 18:09:31 +02:00
Gerasimos (Makis) Maropoulos
2042fddb66 Another new feature: websocket controller, for real
Former-commit-id: c1a59b86733e890709b52446e22427a17d87f5fc
2017-12-20 17:56:28 +02:00
Gerasimos (Makis) Maropoulos
4fb46bf1f3 fix mvc/ideas/1/main.go->AfterActivation
Former-commit-id: bf3d8227793fba76f0f7349d82d1200275ac9147
2017-12-18 02:24:53 +02:00
Gerasimos (Makis) Maropoulos
d5a38a0cd6 more checks about creating new instance of controller on each request - this time if all bindings are static then set them to the initial-devpassed controller and if the total number of lengths are equal with these static dependencies then we ignore the injector and use the initial controller on each request - maximize the performance when simple controller is used - need more cleanup before new release but I hope until Christmas iris developers will be amazed
Former-commit-id: 32ed69368d1df2c25cdb712bb7f0cf47b2e36c05
2017-12-18 00:16:10 +02:00
Gerasimos (Makis) Maropoulos
68cc6641d4 Add session.Destroy (before I've added: Increment & Decrement entry helpers as well) | Improve the debug messages for the controllers
Former-commit-id: f5f17b05252a5032ace1e2d0fdd2304fc4004635
2017-12-16 23:09:00 +02:00
Gerasimos (Makis) Maropoulos
b8cafce6b9 add simple tests for _examples/mvc/hello-world and session-controller
Former-commit-id: d88a792ba57cd869d2888f41bca6eb3e5b4f7d49
2017-12-16 21:27:20 +02:00
Gerasimos (Makis) Maropoulos
34664aa311 OK, my dream-idea is implemented. TODO: Some examples and doc.go is not updated yet, comments on the mvc/di subpackage, the tutorial/vuejs-todo-mvc is running but not finished yet (it's using browser's localstorage and it should be replaced by the http requests that are registered via iris mvc
Former-commit-id: 0ea7e01ce1d78bcb78b40f3b0f5c03ad7c9abaea
2017-12-16 06:38:28 +02:00
kataras
7043f352d9 made it work but looking for another approach
Former-commit-id: e61c4573543c57b8d6d4ef2583e40f52c391402f
2017-12-04 05:06:03 +02:00
kataras
5a8b17f0e8 Add a useful(?) introduction README.md section to some examples
Former-commit-id: 14041307dc2f98810d2c20dee68d2c4a7aa63e13
2017-11-07 19:12:30 +02:00
kataras
666bcacf20 Update to version 8.5.5
Former-commit-id: b5be58709f17758a8df3ebc99270b97ccd8b18f2
2017-11-02 05:50:56 +02:00
Gerasimos (Makis) Maropoulos
4a63488948 Update to version 8.5.4 | Read HISTORY.md
https://github.com/kataras/iris/blob/master/HISTORY.md#th-26-october-2017--v854

Former-commit-id: 43a3b46b99085e0e0ed47b281e2f61dbb1ac6eb6
2017-10-26 02:48:16 +03:00
Gerasimos (Makis) Maropoulos
11277f12a0 Structuring examples - Pushed to iris-contrib/examples as well.
Former-commit-id: 24ee6ce233d83f0b394afc6c69b5a88243406045
2017-10-22 16:04:11 +03:00
Gerasimos (Makis) Maropoulos
13975a5d81 Nothing in codebase, just some MVC examples enhancements
Former-commit-id: 81f1121da0e7632ef3a0f7b78d6784ee1690eb7e
2017-10-12 21:24:11 +03:00
Gerasimos (Makis) Maropoulos
32d14db46d Update the _examples/mvc/login example - add a Path property at mvc.Response and add a context.Proceed helper function
Former-commit-id: b898901fe4a324e888a6e09c93530cf7a551cf2a
2017-10-12 16:28:41 +03:00
Gerasimos (Makis) Maropoulos
b0f8329768 Update to version 8.5.2 | Read HISTORY.md: https://github.com/kataras/iris/blob/master/HISTORY.md#th-12-october-2017--v852
https://github.com/kataras/iris/blob/master/HISTORY.md#th-12-october-2017--v852

Former-commit-id: 2501cf6066812c2aac158d8d6cd4e992a2b538f9
2017-10-12 03:51:06 +03:00
Gerasimos (Makis) Maropoulos
7ab607aab2 minor https://github.com/kataras/iris#quick-mvc-tutorial-3
Former-commit-id: 0f0667f7e460dc241f3a8fcca50cc6caf228d081
2017-10-10 05:17:53 +03:00
Gerasimos (Makis) Maropoulos
82b5a1d4ed Enhance the MVC "using-method-result" example. Prev: update to version 8.5.0
Prev Commit: 49ee8f2d75 [formerly 6a3579f2500fc715d7dc606478960946dcade61d]

Changelog: https://github.com/kataras/iris/blob/master/HISTORY.md#mo-09-october-2017--v850

This example is updated with the current commit: https://github.com/kataras/iris/tree/master/_examples/mvc/using-output-result


Former-commit-id: 29486ef014b3667fa1c7c66e11c8e95c76a37e57
2017-10-10 04:46:32 +03:00
Gerasimos (Makis) Maropoulos
49ee8f2d75 Update to version 8.5.0 | NEW: MVC Output Result | Read HISTORY.md
Former-commit-id: 6a3579f2500fc715d7dc606478960946dcade61d
2017-10-09 15:26:46 +03:00
Gerasimos (Makis) Maropoulos
e5600fcf0d Update to version 8.4.5 | Read https://github.com/kataras/iris/blob/master/HISTORY.md#fr-06-october-2017--v845 for more.
Former-commit-id: 4e30bf6a74acb7d463c7fcf1e9e08ca3147117a7
2017-10-06 08:23:03 +03:00
Gerasimos (Makis) Maropoulos
4fb78bbcd9 Update sessions/sessiondb/badger to its latest version and SessionController is able to initialize itself if session manager is not provided by the caller-dev.
Changes:

Update the badger database using transactions, as supported from yesterday via: 06242925c2

Add a custom `OnActivate` via mvc/activator/activate_listener.go, this can be used to perform any custom actions when the app registers the supported Controllers. See mvc/session_controller.go for the excellent use case.

errors.Reporter.AddErr returns true if the error is added to the stack, otherwise false


Former-commit-id: c896a2d186a4315643f3c5fdb4325f7ee48a9e0a
2017-10-06 01:19:10 +03:00
Gerasimos (Makis) Maropoulos
b2a24d36e8 Fix _examples/mvc/login/user/controller.go redirection from POST: /user/register to GET: /user/me as reported at https://github.com/kataras/iris/issues/777
Former-commit-id: f26d36dfcb21fae7d3ce9b92fa97611dbc15802d
2017-10-05 03:26:39 +03:00
hiveminded
d7ec0d4416 add content type and response text to the Controller 💯
Former-commit-id: 99cde0a445027b10839155501a7918732a783af3
2017-09-02 14:32:14 +03:00
kataras
e2600450f7 Fan of the MVC Architectural Pattern?
Former-commit-id: c6e425e8a4b150ea78456b2db88367093c164a38
2017-08-28 11:40:25 +03:00
kataras
42b123975c 8.4.0 | New MVC Features | Refactor examples and godoc for go 1.9 use. Read HISTORY.md.
Former-commit-id: 90c05e743052bc3722e7fefaa0cbb0ed5153a1fb
2017-08-27 20:35:23 +03:00
kataras
a2de506f80 Upgrade the markdown parser vendor. Prev Commit: Update to v8.4.4, new mvc features. Read HISTORY.md.
Former-commit-id: 194b8fb1ba68a046e0e89a42a3e79b2cd319f14b
2017-08-27 19:05:15 +03:00
kataras
591806795e Update to 8.4.0 | New macro type, new high-optimized MVC features. Read HISTORY.md
Former-commit-id: b72a23ba063be60a9750c8b1b0df024b0c8ed549
2017-08-27 18:46:04 +03:00
kataras
8f7b5752f8 fix some typos
Former-commit-id: 338c7421e2cd49f558cf09d194fe42c4db701be1
2017-08-24 15:51:43 +03:00
kataras
1ffe4479f7 Update to 8.3.3 | Even better MVC. Read HISTORY.md
Former-commit-id: 88998c317117abff1a214cf396b205d8d8ea888c
2017-08-23 01:11:52 +03:00
kataras
8c1a4da804 Update to v8.3.1 | MVC: RelPath and RelTmpl implemented. Read HISTORY.md
Read HISTORY.md

https://github.com/kataras/iris/blob/master/HISTORY.md#sa-19-august-2017--v831

Former-commit-id: 23f7c1c0dc3bc64f27db591a9b22cd5934337891
2017-08-19 21:54:33 +03:00
kataras
b96476d100 Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
2017-08-18 17:09:18 +03:00