Example #1
0
 * The application bootstrap file
 *
 * This file is the main entry point for the application
 * All url requests to the application are handled by this file
 *
 * @link         	  http://pakjiddat.com 
 * @version           1.1.5
 * @package           Framework
 * 
 * Description:       WebExample project
 * Version:           1.1.5
 * Author:            Nadir Latif
 * Author URI:        http://pakjiddat.com
 * License:           GPL-2.0+
 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain:       webexample
 */
namespace Framework;

/** The autoload.php file is included */
require "autoload.php";
/** The application parameters */
$parameters = isset($argc) ? $argv : $_REQUEST;
/** The application context is determined */
$context = isset($parameters['context']) ? $parameters['context'] : (isset($argc) ? "command line" : "browser");
/** The application request is handled */
$output = \Framework\Frameworks\WordPress\Application::HandleRequest($context, $parameters, "WebExample");
/** If the output is not suppressed then the application output is echoed back */
if (!defined("NO_OUTPUT")) {
    echo $output;
}