Where to place your custom code or library.

Hi, all.

Sometime we will write my custom code that maybe is a class or function, and then use this code we need at certain moment. So, where to store the code ? how and where to import my custom code? Could you give a example for explaining ?

Thanks to discussion.

Place it on the lib/ directory. Then, require it where you need it.

Hope it helps.