/**
  * Getter overload method.  Called when an $obj->field and field
  * does not exist in the object's variable list.  In this case,
  * it will get a config, db or smarty instance (for backwards 
  * compatibility), or call get_orm_class on the given field name.
  *
  * @param string The field to look up
  * @return mixed The value for that field, if it exists
  * @author Ted Kulp
  **/
 function __get($name)
 {
     if ($name == 'config') {
         return CmsConfig::get_instance();
     } else {
         if ($name == 'db') {
             return CmsDatabase::get_instance();
         } else {
             return parent::__get($name);
         }
     }
 }