Tag Archives: fatal error

Fatal Error Cannot Redeclare Class

In the previous article, we used code like this to prevent collisions between function names: [code language=”php”] include MODX_CORE_PATH . ‘components/mycomponent/model/mymathfunctions.class.php’; $math = new MyMathFunctions(); echo $math->addIntegers(2,3); /* Displays 5 …

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