Info | ||
---|---|---|
| ||
Innomatic 7.x will deprecate class bundled with the "class" component in favor of Composer distributed classes. |
Classes in Innomatic are standard PHP classes.
Innomatic adheres to and supports PSR-0 autoloading, so you don’t have to use require() and include().
Each class must have its own PHP file inside innomatic/core/classes folder.
You declare classes with the “class” component in application.xml.
e.g. for \Examples\Basic\BasicClass class:
Code Block |
---|
<class name="examples/basic/BasicClass.php" />
|
Next: Step 6: Database