<?php //define the source directory of the project. define('PROJECT_SRC', __DIR__); //include the autoloader. require_once PROJECT_SRC . '/vendor/autoload.php'; require_once PROJECT_SRC . '/src/Autoloader.php'; //initialize the autoloader for the project source. $autoloader = new \Clanify\Autoloader(); $autoloader->addNamespace('\\Clanify', PROJECT_SRC . '/src');
<?php //include the configuration. require_once 'config.php'; //include the autoloader. require_once SRCPATH . 'Autoloader.php'; //initialize the autoloader. $auto_loader = new \Clanify\Autoloader(); $auto_loader->addNamespace('Clanify', 'src'); //initialize the template engine. $cito = \Clanify\Core\CitoEngine::getInstance(); $cito->init(); //initialize the application. $clanify = new \Clanify\Core\Clanify(); //render the output. $cito->render();