Ejemplo n.º 1
0
 public static function index()
 {
     // -- ** -- GET Twig & city list
     $twig = Config::getTwig();
     $cityList = Address::getCityList();
     //die($_SERVER['REQUEST_URI']);
     // -- ** -- Check $cityList content is exist with isset method
     $result = array('cityList' => json_decode($cityList)->content);
     // -- ** -- Render result with twig
     return $twig->render('index.html', $result);
 }
Ejemplo n.º 2
0
 public function asama_1()
 {
     //die(substr(dirname(__FILE__),0, strlen(dirname(__FILE__))-11));
     //die(mbstr(dirname(__FILE__)));
     // -- ** -- GET Twig & city list
     $twig = Config::getTwig();
     $cityList = Address::getCityList();
     //die($cityList);
     //die($_SERVER['REQUEST_URI']);
     // -- ** -- Check $cityList content is exist with isset method
     $result = array('cityList' => json_decode($cityList)->content);
     print_r($cityList);
     // -- ** -- Render result with twig
     return $twig->render('index.html', $result);
 }