This file contains hidden or 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_once 'Twig/Autoloader.php'; | |
| Twig_Autoloader::register(); | |
| $loader = new Twig_Loader_Filesystem('templates'); | |
| $config = array( | |
| 'cache' => 'cache', | |
| ); | |
| $twig = new Twig_Environment($loader, $config); |
This file contains hidden or 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 User { | |
| protected $outfit = array(); | |
| function __construct() { | |
| $store = new Store(); | |
| array_push($this->outfit, $store->getCloth()); | |
| array_push($this->outfit, $store->getShoes()); | |
| } |
This file contains hidden or 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_once __DIR__.’/silex.phar’; | |
| $app = new SilexApplication(); | |
| $app->get(‘/hello/{name}’, function($name) { | |
| return "Hello $name"; | |
| }); | |
| $app->run(); | |
| ?> |
This file contains hidden or 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 | |
| namespace Silex; | |
| interface ExtensionInterface | |
| { | |
| function register(Application $app); | |
| } | |
| ?> |
This file contains hidden or 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
| require_once __DIR__.'/silex.phar'; | |
| $app = new Silex\Application(); | |
| $app->get('/hello/{name}', function($name) { | |
| return "Hello $name"; | |
| }); | |
| $app->run(); |
This file contains hidden or 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
| $(document).ready(function(){ | |
| $(".click").toggle(function(){ | |
| $("#box").css("-webkit-transform","scale(2.1) rotate(-90deg)"); }, | |
| function () { | |
| $("#box").css("-webkit-transform","scale(1) rotate(0)"); | |
| }) | |
| }) |
This file contains hidden or 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
| <IfModule mod_python.c> | |
| <FilesMatch "\.py$"> | |
| AddHandler mod_python .py | |
| PythonHandler mod_python.publisher | |
| PythonDebug on | |
| </FilesMatch> | |
| </IfModule> |
NewerOlder