How to Custom a Class and method

I am using Micro Applications, while micro apps only have model folder and no controller folder, i want to create my custom class to let apps.php to use it, how can i do and where can i place? i know db mapping is a class saving in model folder, but i have some classes have my custom method.... now how to do it? thanks!!!!!!!


You can:

  • use controllers in micro app, can be usefull for routing, see here
  • use phalcon's loader to load any directory you want (models, controllers or even your own library)

The way you organize your app is up to you but dasshy may be a good starting point.