About Bob Ray

Bob Ray is the author of MODX: The Official Guide and over 30 MODX add-on components. He hosts Bob's Guides, a source of valuable information for MODX users, and has been very active in the MODX Forums with over 19,000 posts.

Here are my most recent posts

Author Archives: Bob Ray

Bob Ray

About Bob Ray

Bob Ray is the author of MODX: The Official Guide and over 30 MODX add-on components. He hosts Bob's Guides, a source of valuable information for MODX users, and has been very active in the MODX Forums with over 19,000 posts.

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

Using an Autoloader to Load Classes

In the previous articles, we looked at ways to prevent collisions between functions and classes. In this article, we’ll see how to make that more convenient by using an autoloader …

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

Fatal Error Cannot Redeclare Function I

Sooner or later, you’re likely to see an error like this one:           In this article, we’ll look at what causes that message and how to …

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