function setup() { error_reporting(E_ALL | E_STRICT | E_RECOVERABLE_ERROR); define('MEDICK_PATH', realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..')); set_include_path(MEDICK_PATH . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR); error_reporting(E_ALL | E_STRICT | E_RECOVERABLE_ERROR); require 'medick/Medick.php'; set_error_handler(array(new ErrorHandler(), 'raiseError')); Medick::load_framework('eltest'); }
public static function prepare_application() { set_error_handler(array(new ErrorHandler(), 'raiseError')); Medick::load_framework('context'); Medick::load_framework('logger'); Medick::load_framework('plugin'); Medick::load_framework('action_controller'); Medick::load_framework('action_view'); Medick::load_framework('active_record'); }
public function setup() { Medick::load_framework('context'); }