Commit 77230f8d8aaaf10da5f39c3736ac990638abe750
1 parent
6f2ce522
Load_hayamiki_web_controller is now working
Showing
1 changed file
with
11 additions
and
3 deletions
Show diff stats
controller/load_web_controller.anubis
| ... | ... | @@ -6,10 +6,15 @@ |
| 6 | 6 | * © David RENÉ |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | +read xlib/web/types/controllers_web_site.anubis | |
| 10 | +read xlib/web/plugin/plugin.anubis | |
| 9 | 11 | read tools/basis.anubis |
| 10 | 12 | read system/string.anubis |
| 11 | 13 | read system/logger.anubis |
| 12 | 14 | |
| 15 | +read hayamiki_lib/model/types/hk_database.anubis | |
| 16 | +read hayamiki_lib/view/view_table_manager_types.anubis | |
| 17 | + | |
| 13 | 18 | define String modules_directory = find_and_replace(my_anubis_directory, "\\", "/") + "/modules/". |
| 14 | 19 | |
| 15 | 20 | |
| ... | ... | @@ -24,8 +29,11 @@ public define List(WEB_Controller) |
| 24 | 29 | )= |
| 25 | 30 | if load_plugin(modules_directory+"lib_"+version+"/hayamiki.lib") is |
| 26 | 31 | { |
| 27 | - failure then logger(lorError, "Can't load '"+modules_directory+"lib_"+version+"/hayamiki.lib'"), | |
| 28 | - success(hk_plugin) then hk_plugin.get_controller(db, hk_db, _vtm, logger) | |
| 29 | - | |
| 32 | + failure then | |
| 33 | + logger(logError, "Can't load '"+modules_directory+"lib_"+version+"/hayamiki.lib'"); | |
| 34 | + [], | |
| 35 | + success(hk_plugin) then | |
| 36 | + logger(logInfo, "lib_"+version+"/hayamiki.lib' loaded"); | |
| 37 | + hk_plugin.get_controller(db, hk_db, _vtm, logger) | |
| 30 | 38 | } |
| 31 | 39 | . | ... | ... |