Can somebody describe what is proper way to insert custom class in MODx, where to insert
class Foo {
public function Hello{
....
}
}
Where to call it, and how to use it, i saw there is xPDO and GetClass, but what is common way. And also is ti possible to get in class like this
Not like
Is there some advantage of first solution?
How to pass VAR from Chunk to class Foo but to method Hello();
Txanks, i hope someone will make good example, because for now all i see is documentation, but there is no good simple example;0