1. How do I access global configuration parameters?
I tried the following from within the Model
Code: Select all
global $mainframe;
$params = &$mainframe->getParams();
2. How do I compare the global parameters with the parameters of the article itself. (best practices)
I know they are stored in the #__content.attribs, but is there already a function in the framework to load the into an array or, preferably, an object? Or should I use some combination of explode() and regular expressions?