Example #1
0
function bootrap_netgear()
{
    $dir = dirname(__FILE__) . '/class/';
    require_once $dir . 'net-gear-hook.php';
    require_once $dir . 'net-gear-page-controller.php';
    require_once $dir . 'net-gear.php';
    require_once $dir . 'net-gear-autoloader.php';
    new NetGearAutoloader(plugin_dir_path(__FILE__));
    //
    //NetGear::showError();
    NetGear::bootstrap();
}
Example #2
0
 /**
  * Inizializza il plugin del file
  * @param $file string __FILE__
  */
 public final function __construct($file)
 {
     $this->runned = false;
     self::$initialized = false;
     $this->file = $file;
     $this->version = 1;
     $this->styles = array();
     $this->script = array();
     $this->actions = array();
     $this->filters = array();
     $this->page_controllers = array();
     $this->network_page_controllers = array();
     //
     $this->load_deps_in_folder('controller');
     //        $this->load_deps_in_folder('model');
     //        $this->load_deps_in_folder('repository');
     //
     global $wpdb;
     $this->wpdb = $wpdb;
 }