$install_controller_file = ROOT . DS . APP_DIR . DS . 'Controller' . DS . 'InstallsController.php'; return array($install_script_file, $install_controller_file); } /** * Invokes a method on the class. * * @param string $method name * @return mixed */ protected function _invoke($method) { $rm = new ReflectionMethod(get_class($this), $method); return $rm->invoke($this); } } //---------------------------------------------------------------------- // Run the installer try { $installer = new WebInstaller(); $installer->run(); } catch (Exception $e) { header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500); echo "<!DOCTYPE html>\n"; echo "<html lang=\"en\">\n"; echo "<head><title>Install Error</title></head>\n"; echo "<body>\n"; echo "<h1>Fatal Install Error</h1>\n"; echo "<p><strong>Error:</strong> {$e->getMessage()}</p>\n"; echo "</body>\n"; echo "</html>\n"; }