This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Payment_Adapter_Skrill implements \Box\InjectionAwareInterface | |
{ | |
/** | |
* @var \Box_Di | |
*/ | |
protected $di; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Payment_Adapter_Skrill implements \Box\InjectionAwareInterface | |
{ | |
/** | |
* @var \Box_Di | |
*/ | |
protected $di; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
$loader = new Twig_Loader_Filesystem('views'); | |
$twig = new Twig_Environment($loader); | |
echo $twig->render('latihan.html', array( | |
'name' => 'Frey', | |
'city' => 'Samarinda' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Twig</title> | |
</head> | |
<body> | |
<p>Hai, saya adalah {{ name }}</p> | |
<p>Saya berasal dari kota {{ city }}</p> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; | |
$loader = new Twig_Loader_Filesystem('views'); | |
$twig = new Twig_Environment($loader); | |
$data = array( | |
'users' => array( | |
array('name' => 'dana', 'age' => 26, 'married' => false), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Twig</title> | |
</head> | |
<body> | |
<ul> | |
{% for user in users %} | |
{% if user.married == true %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
require __DIR__ . '/../vendor/autoload.php'; | |
// Slim Configuration | |
$config = array( | |
'displayErrorDetails' => true, | |
'addContentLengthHeader' => false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/../app/app.php'; | |
$app->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/../app/app.php'; | |
$app->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
require __DIR__ . '/../vendor/autoload.php'; | |
// Slim Configuration | |
$config = array( | |
'displayErrorDetails' => true, | |
'addContentLengthHeader' => false, |
OlderNewer