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, 17 May 2013

view this page in

Yaf_Application::execute

(Yaf >=1.0.0)

Yaf_Application::executeExecute a callback

Açıklama

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.

Değiştirgeler

entry

a valid callback

...

parameters will pass to the callback

Dönen Değerler

Örnekler

Örnek 1 Yaf_Application::execute()example

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

Yukarıdaki örnek şuna benzer bir çıktı üretir:



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