Skip to content

Instantly share code, notes, and snippets.

@agustinhaller
Last active December 31, 2015 14:38
Show Gist options
  • Select an option

  • Save agustinhaller/8001139 to your computer and use it in GitHub Desktop.

Select an option

Save agustinhaller/8001139 to your computer and use it in GitHub Desktop.
<?php
function Test()
{
$template_engine = TemplateEngine::get();
$subjects = App::getSubjects();
$test_results = array();
foreach($subjects as $subject)
{
$subject_id = $subject["id"];
$image_samples = $subject["image_samples"];
$original_image = $subject["original_image"];
$algorithm = "skybiometry";
$test_result = App::TestAccuracy($subject_id, $image_samples, $original_image, $algorithm);
$test_results = array("" => "",
"" => "",
"" => "",
"" => "",);
}
// Return $test_results to the template
// ...
$vars = TemplateEngine::getVars();
echo $template_engine->render('test/test.html', $vars);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment