Jaden
not so active
Can this be done? If so, how?
Global Class:
Core::$MySql is literally just a predefined variable.
Engine::get() either starts a new PDO instance based on the parameters, or gets the default instance which is also predefined.
Global Class:
PHP:
<?php
/**
* &BabboCMS - Simple content management system.
* Using: MVC Folder Structure.
*
* Developed and designed strictly for the use of Babbo Hotel.
* This CMS is under copyright law and is not for release nor for sale.
* Written by Babbo Hotel (babbo.ws), content edited by Adam (Wicked).
* Brought to you, an exploit-free, dynamic content management system.
*
* https://babbo.ws
*
* @author Jaden (Moonshine), Josh
* @since July 16, 2015
* @version 3.0.3
* @license https://babbo.ws
*/
require ROOT.'/vendor/autoload.php';
require MAIN.'/core.php';
__autoload('Engine');
__autoload('Route');
__autoload('Template');
Core::SetIpAddress();
Core::Load('Extensions');
Core::Load('Languages');
Core::Load('Models');
Core::$Config = require MAIN.'/config.php';
Engine::Init();
Core::$MySql = Engine::get();
Core::$MySql is literally just a predefined variable.
Engine::get() either starts a new PDO instance based on the parameters, or gets the default instance which is also predefined.