downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Yaf_Application::getAppDirectory> <Yaf_Application::environ
[edit] Last updated: Fri, 24 May 2013

view this page in

Yaf_Application::execute

(Yaf >=1.0.0)

Yaf_Application::executeExécute une fonction de rappel

Description

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

Cette méthode est habituellement utilisée pour exécuter Yaf_Application dans un crontab. Le crontab peut aussi utiliser le mécanisme d'autoloader et de Bootstrap.

Liste de paramètres

entry

Une fonction de rappel valide.

...

Paramètres à passer à la fonction de rappel

Valeurs de retour

Exemples

Exemple #1 Exemple avec Yaf_Application::execute()

<?php
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);
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :



add a note add a note User Contributed Notes Yaf_Application::execute - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites