Tag Archives: MODx

Using Namespaces to Avoid Class-name Collisions

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.

Tags: , | Posted under MODX, MODX | Leave a comment

Handling Included Files

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 = …

Tags: , , | Posted under MODX, MODX | Leave a comment

MODX User Report IV

In the previous article, we produced a sorted list of resources acted on by the current user. In this one, we’ll see how to get all resources acted on by …

Tags: , , | Posted under MODX, MODX | Leave a comment