public function __construct() { global $angularpress; $angularpress = new stdClass(); parent::__construct(); add_action('init', array(&$this, 'init_session'), 1); add_action('after_setup_theme', array(&$this, 'angular_redux'), 8); add_action('after_setup_theme', array(&$this, 'theme_setup'), 10); add_action('after_setup_theme', array(&$this, 'angular_tgm'), 11); add_action('after_setup_theme', array(&$this, 'angular_functions'), 14); add_action('after_setup_theme', array(&$this, 'angular_templates'), 16); add_action('after_setup_theme', array(&$this, 'angular_admin'), 17); add_action('after_setup_theme', array(&$this, 'angular_jsonapi'), 18); }
/** * Load View renderer class */ require_once "View/View.php"; /** * Load Controller base class */ require_once "Controller/Controller.php"; /** * Load Model base class */ require_once "Model/Model.php"; // Call navigation panel require_once "View/Templates/Navigator.php"; // Show pagelet here require_once "Route/config/Reactor.php"; $route = new Reactor(); $route->Start(); //require_once("Include/Test.php"); ?> </body> <div id="footer-wrapper"> <div> <a href="">F.A.Q's</a> | <a href="">About</a> | <a href="">Created by: Vincent Nacar</a> | <h4>Codebank 2015</h4> </div> </div> </html>
<?php use Virge\Core\Config; error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); /** * * @author Michael Kramer */ chdir(dirname(__FILE__)); require_once 'bootstrap.php'; // Create new Notifier instance. global $_airbrakeNotifier; $config = Config::get('app'); if ($config['environment'] === 'production') { $_airbrakeNotifier = new \Airbrake\Notifier(array('projectId' => 115002, 'projectKey' => '9280f8dc5b80d03f9a11e56d773dc755')); // Set global notifier instance. \Airbrake\Instance::set($_airbrakeNotifier); // Register error and exception handlers. $handler = new \Airbrake\ErrorHandler($_airbrakeNotifier); $handler->register(); } //handle arguments $args = array(); if (isset($argv[2])) { for ($i = 2; $i <= $argc; $i++) { $args[] = isset($argv[$i]) ? $argv[$i] : NULL; } } $command = isset($argv[1]) ? $argv[1] : null; $reactor = new Reactor(); $reactor->run('prod', 'cli', 'execute', array($command, $args));
<?php /** * * @author Michael Kramer */ require_once '../bootstrap.php'; //handle arguments $args = array(); if (isset($argv[1])) { for ($i = 1; $i < $argc; $i++) { $args[] = $argv[$i]; } } $reactor = new Reactor(); $reactor->run('prod', 'router', 'route', $args);