<?php /** * Plugin Name: WPMVC * Plugin URI: http://anthonyontheweb.com * Description: A MVC framework for rapid development of wordpress plugins. * Version: 1.0.0 * Author: Anthony Massie * Author URI: http://anthonyontheweb.com * License: GPL2 */ /***************************** DO NOT EDIT BELOW HERE *****************************/ namespace Phi\MVCWP; defined('ABSPATH') or die("Nein."); define('MVCWP_LIBRARY', realpath(__DIR__ . '/../MVCWP-Lib/')); require realpath(MVCWP_LIBRARY . '/vendor/Phi/MVCWP/Autoloader/BaseAutoloader.php'); require realpath(MVCWP_LIBRARY . '/vendor/Phi/MVCWP/Autoloader/StandardAutoloader.php'); $autoloader = new Autoloader\StandardAutoloader(); $autoloader->addLibraryPath(MVCWP_LIBRARY); $autoloader->register(); $BS = new Bootstrapper(); $BS->init(__DIR__);
public static function init($dir) { Bootstrapper::init($dir); return Bootstrapper::boot(); }