(PECL yaf >=1.0.0)
Yaf_Application::execute — Execute a callback
$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.
本函数还未编写文档,仅有参数列表。
entry
...
Example #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);
?>
以上例程的输出类似于: