Models definition: Define models in constructor, manually, in class or in external files
Porte provide different discovery alternatives in order to define the models.
Here is the list of methods available by default:
- Define your models in the Porte contructor configuration array;
- Define your models manually in php by calling the method "$porte->models->set";
- Define your models in your class definition by overwritting the "$config" property;
- Define your models as Json files and tell Porte to look for the directory containing those file.
You could also create your own mechanism by looking at how the external json configuration is done.