PHP 8.6.0 Beta 3 is available for testing

Yaf_Application::run

(Yaf >=1.0.0)

Yaf_Application::runStart Yaf_Application

Descrizione

public function Yaf_Application::run(): Yaf_Response_Abstract|false

Run a Yaf_Application, let the Yaf_Application accept a request, route this request, dispatch to controller/action and render a response. Finally, return the response to the client.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the Yaf_Response_Abstract object on success, or false on failure (for instance if the application is already running).

Errori/Eccezioni

Triggers a YAF_ERR_STARTUP_FAILED error if the application was already started.

Esempi

Example #1 Yaf_Application::run() example

<?php
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', __DIR__);

$application = new Yaf_Application(APPLICATION_PATH.'/conf/application.ini');
$application->bootstrap()->run();
?>

Vedere anche:

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top