Example #1
0
 public static function getInstance($template = '')
 {
     if ($template == JFactory::getApplication()->getTemplate()) {
         print 'You should NOT set "' . $template . '" as Default Template.';
         die;
     }
     if (!self::$instance) {
         self::$instance = new CCK_Rendering();
     }
     return self::$instance;
 }