Login   Register  
PHP Classes

File: Example/_autoload.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Pierre-Henry Soria  >  PHP Markdown and BBCode Parser  >  Example/_autoload.php  >  Download  
File: Example/_autoload.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Markdown and BBCode Parser
Parse and replace Markdown and BBCode by HTML
Author: By
Last change:
Date: 1 year ago
Size: 757 bytes


Class file image Download
 * @title            Classes loader
 * @author           Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright        (c) 2012-2013, Pierre-Henry Soria. All Rights Reserved.
 * @license          Lesser General Public License; See LICENSE.txt in the root directory.
 * @link             http://github.com/pH-7
 * @package          PH7
 * @version          1.0

namespace PH7;
defined('PH7') or exit('Restricted access');

// Autoloading Classes Files
// Hack to remove namespace and backslash
$sClass str_replace(array(__NAMESPACE__ '\\''\\'), '/'$sClass);

is_file(dirname(__DIR__) . $sClass '.class.php'))
dirname(__DIR__) . $sClass '.class.php';