中文 (简体)
Fork Me on GitHub

Files and Folders

In a standard SFN application, there are always some files and folders presented in your project directory, some of them are necessary, some of them are just recommended.

Apart from these, you can create any files and folders you want, just make sure they'll be loaded properly.

(NOTE: * indicates the files in the current item is hot-reloadable.)

Hot-reloading

The hot-reloading feature was introduced since SFN 0.3, back then only controllers that can be hot-reloaded. However, since version 0.5, SFN introduced a new hot-reloading model via Alar framework, now almost all facilities in an SFN project will be hot-reloadable.

However, there are things needed to be considered since your program will automatically reload the modules, which means any state, memory cache, variables, etc., will be wiped out once reloaded, you have to change your development habit and design your program to be stateless. If doing so is hard for you, just turn off hot-reloading, and it's fine.