Classes encapsulate object-specific logic, and they also come in two flavors:
Classes are automatically loaded the first time they're used, so you don't have to worry to include them anywhere.
For example, to create an Image object, just do this anywhere in your code:
$image = new \Cherrycake\Image;
Likewise, to create an object of a class you've created (an App class), just remember to specify our app's namespace instead of
$product = new \CherrycakeApp\Product;
The App classes you create must be stores in the
/classes directory of your app, and the file name must match the class name, plus the
Note that file name for classes is case-sensitive.
You can change the default
/classesdirectory for the one of your choice by setting the
appClassesDirsetup key when calling Engine::init