PHP 5.6.16 is available


(Yaf >=1.0.0)

Yaf_Application::executeExecute a callback


public void Yaf_Application::execute ( callable $entry , string $... )

This method is typically used to run Yaf_Application in a crontab work. Make the crontab work can also use the autoloader and Bootstrap mechanism.

Elenco dei parametri


a valid callback


parameters will pass to the callback

Valori restituiti


Example #1 Yaf_Application::execute()example

function main($argc$argv) {

$config = array(
"application" => array(
"directory" => realpath(dirname(__FILE__)) . "/application",

/** Yaf_Application */
$application = new Yaf_Application($config);
$application->execute("main"$argc,  $argv);

Il precedente esempio visualizzerĂ  qualcosa simile a:

add a note add a note

User Contributed Notes

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