- Copy
config.default.php
toconfig.php
to start project - Edit database config to match environment setup
- Contains all custom routers
- Will override default REST model-controllers if you name them
[Model]Controller.php
and name the class[Model]Controller
, which extendsRESTModelController
File: FoodsController
class FoodController extends RESTModelController {}
- Collection level uses normal getMethod but object level needs to be restGetMethod
- Controllers will be auto-generated unless this code is above:
/**
* @model NoController
*/
- For libraries in the project that don't fit in with Controllers or external ones that don't use composer