protected function loadFrontendControllers()
 {
     require_once UIFORM_FORMS_DIR . '/modules/formbuilder/controllers/uiform-fb-controller-frontend.php';
     require_once UIFORM_FORMS_DIR . '/modules/formbuilder/models/uiform-model-form.php';
     require_once UIFORM_FORMS_DIR . '/modules/formbuilder/models/uiform-model-fields.php';
     require_once UIFORM_FORMS_DIR . '/modules/formbuilder/models/uiform-model-settings.php';
     require_once UIFORM_FORMS_DIR . '/modules/formbuilder/models/uiform-model-form-records.php';
     $this->models = array('formbuilder' => array('form' => new Uiform_Model_Form(), 'fields' => new Uiform_Model_Fields(), 'settings' => new Uiform_Model_Settings(), 'form_records' => new Uiform_Model_Form_Records()));
     self::$_models = $this->models;
     $this->modules = array('formbuilder' => array('frontend' => Uiform_Fb_Controller_Frontend::get_instance()));
     self::$_modules = $this->modules;
 }
 public function __construct()
 {
     // Save the class name for later use
     $this->class_name = get_class();
     //
     //  Plug-in requirements
     //
     if (!$this->check_requirements()) {
         add_action('admin_notices', array(&$this, 'uiform_requirements_error'));
         return;
     }
     //
     // Declare constants and load dependencies
     //
     $this->define_constants();
     $this->load_dependencies();
     try {
         if (class_exists('Uiform_Bootstrap')) {
             $GLOBALS['wprockf'] = Uiform_Bootstrap::get_instance();
             register_activation_hook(__FILE__, array($GLOBALS['wprockf'], 'activate'));
             register_deactivation_hook(__FILE__, array($GLOBALS['wprockf'], 'deactivate'));
         }
     } catch (exception $e) {
         $error = $e->getMessage() . "\n";
         echo $error;
     }
 }