Skip to content

Instantly share code, notes, and snippets.

@eastofnyc
Created February 27, 2013 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eastofnyc/5048363 to your computer and use it in GitHub Desktop.
Save eastofnyc/5048363 to your computer and use it in GitHub Desktop.
include_framework.php
<?php
##########################################################################################
# CONFIG
##########################################################################################
define('FRAMEWORK_VERSION', '2.1');
##########################################################################################
# AUTOLOADER
##########################################################################################
foreach ($autoload as $path => $includes)
{
if($includes)
{
foreach ($includes as $include)
{
switch($path)
{
case 'classes':
include_once(KFWCLASSES.$include.'.php');
break;
case 'helper':
include_once(KFWHELPER.$include.'.php');
break;
case 'plugins':
include_once(KFWPLUGINS.$include.'.php');
break;
case 'widgets':
include_once(KFWWIDGETS.$include.'.php');
break;
case 'option_pages':
include_once(KFWOPTIONS.$include.'.php');
break;
case 'shortcodes':
include_once(KFWSC.$include.'.php');
break;
case 'templatefiles':
include_once(TEMPLATEPATH.'/'.$include.'.php');
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment