コード例 #1
0
ファイル: MailExt.php プロジェクト: ninodafonte/SIFO
 private static function _dispatchMailController($to, $subject, $body)
 {
     $ctrl = \Sifo\Bootstrap::invokeController('debug/mail');
     $mail_data = array('to' => $to, 'subject' => $subject, 'body' => $body);
     $ctrl->addParams(array('mail_data' => $mail_data));
     $ctrl->dispatch();
     exit;
 }
コード例 #2
0
ファイル: index.php プロジェクト: ninodafonte/sifo-web
<?php

/**
 * Point of entry for this instance. Apache points to this file.
 *
 * All PHP requests should be directed to this file via Apache using mod_rewrite or mod_alias or .htaccess (not really efficient).
 */
// Get the path to the root folder. ( 4 folders up from the current file):
$root = realpath(dirname(__FILE__) . '/../../../..');
// Instance name (folder under instances):
$instance = 'sifoweb';
// Define the root path:
define('ROOT_PATH', $root);
require ROOT_PATH . '/instances/Bootstrap.php';
// Execute your instance:
\Sifo\Bootstrap::execute($instance);
コード例 #3
0
ファイル: IDE_bootstrap.php プロジェクト: ninodafonte/SIFO
<?php

/**
 * Created by JetBrains PhpStorm.
 * User: sergio.ambel
 * Date: 15/06/12
 * Time: 13:22
 */
define('ROOT_PATH', realpath(dirname(__FILE__) . '/../..'));
require_once ROOT_PATH . '/instances/Bootstrap.php';
require_once ROOT_PATH . '/libs/PHPUnit-3.5.0/Text/Template.php';
$instance_name = "common";
// Default.
foreach ($_SERVER['argv'] as $param) {
    if (preg_match('/instances[\\\\|\\/]([^\\\\|^\\/]*)/i', $param, $matches)) {
        $instance_name = $matches[1];
        break;
    }
}
\Sifo\Bootstrap::$instance = $instance_name;
\Sifo\Bootstrap::autoload();