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.

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: The problem with this code is that if …

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

Fatal Error Cannot Redeclare Class

In the previous article, we used code like this to prevent collisions between function names: The problem with this code is that if it’s called more than once on a …

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

Fatal Error Cannot Redeclare Function II

In the previous article, we saw how to prevent an error like this one by wrapping the function in an if (! function_exists() statement. In this article, we’ll look at …

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