|
Yaf_Application::executeExecute a callback Description
public mixed Yaf_Application::execute(callable
$callback, mixed ...$args)Execute a callback. This method is typically used to run Yaf in a cron job or other CLI script, so that the script can reuse the autoloader and the bootstrap mechanism. Parameters
Return Values
Returns whatever the callback returns, or ExamplesExample #1 Yaf_Application::execute example The above example will output something similar to:
int(2)
array(2) {
[0]=>
string(11) "execute.php"
[1]=>
string(3) "arg"
}
See Also
|