Tag Archives: MODx
In the several previous articles, we looked at ways to prevent collisions between functions and classes. In this article, we’ll see how to handle that using PHP namespaces.
In the previous articles, we put our functions insi de a class and included the class file with a line like this: [code language=”php”] include MODX_CORE_PATH . ‘components/mycomponentname/model/mymathfunctions.class.php’; $math = …