コード例 #1
0
<?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__);
コード例 #2
0
ファイル: Plugin.php プロジェクト: nk2580/wordsmith
 public static function init($dir)
 {
     Bootstrapper::init($dir);
     return Bootstrapper::boot();
 }