Total.js framework lifecycle

90 views
Skip to first unread message

Dennis Angelo

unread,
Apr 1, 2014, 1:50:38 AM4/1/14
to tot...@googlegroups.com
hi,

In the documentation it says that the framework init is like

  • 01. Load configuration
  • 02. Clear temporary directory
  • 03. Load cache
  • 04. Load definitions
  • 05. Load controllers
  • 06. Load modules
  • 07. Load global module (#.js)
  • 08. Waiting for a request

But I noticed that my definitions are being loaded after one of the modules load.



here is the log:

ecommerce module initialised.... (exports.intall called) (/module/mymodule.js)

Global Module (#.js) is loading... (exports.onLoad called) (/module/#.js)

database definition... (/definitions/database.js)



is there something I'm doing wrong in my definitions file?

krzyszto...@gmail.com

unread,
Nov 6, 2014, 7:10:38 AM11/6/14
to tot...@googlegroups.com
Where you find that order?
You have some small picture here: http://docs.totaljs.com/how-does-it-work/controllers/
Here you can see order of loading items by totaljs (I think).
So first you have controller, after that modules and at last - definitions.

Reply all
Reply to author
Forward
0 new messages