| 
<?php/**
 * Copyright (c) 2016 Jorge Patricio Castro Castillo MIT License..s
 */
 /** @deprecated  */
 use eftec\bladeone\BladeOne;
 use eftec\bladeone\BladeOneHtmlBootstrap;
 use eftec\bladeone\BladeOneHtmlBootstrap4;
 
 include "../lib/BladeOne.php";
 
 include "../lib/BladeOneHtml.php";
 include "../lib/BladeOneHtmlBootstrap4.php";
 
 $views = __DIR__ . '/views';
 $compiledFolder = __DIR__ . '/compiled';
 
 
 $blade=new BladeOneHtmlBootstrap4($views,$compiledFolder);
 
 //<editor-fold desc="Example data">
 $countries=array();
 $country=new stdClass();
 $country->id=1;
 $country->cod='ar';
 $country->name="Argentina";
 $country->continent="America";
 $countries[]=$country;
 $country=new stdClass();
 $country->id=2;
 $country->cod='ca';
 $country->name="Canada";
 $country->continent="America";
 $countries[]=$country;
 $country=new stdClass();
 $country->id=3;
 $country->cod='us';
 $country->name="United States";
 $country->continent="America";
 $countries[]=$country;
 $country=new stdClass();
 $country->id=4;
 $country->cod='jp';
 $country->name="Japan";
 $country->continent="Asia";
 $countries[]=$country;
 
 $countrySelected=3;
 $multipleSelect=[1,2];
 //</editor-fold>
 
 class FormOne {
 public function Exampple() {
 return $this;
 }
 }
 
 function Form() {
 return new FormOne();
 }
 
 
 try {
 echo $blade->run("TestBS.hellobootstrap"
 , ["countries" => $countries
 , 'countrySelected' => $countrySelected
 , 'multipleSelect' => $multipleSelect]);
 } catch (Exception $e) {
 echo "error found ".$e->getMessage()."<br>".$e->getTraceAsString();
 }
 
 |