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 ExceptionAction extends Action | |
{ | |
public function __construct(Exception $exception, $debugMode = false) | |
{ | |
$this->exception = $exception; | |
$this->debugMode = $debugMode; | |
$this->template = new Template(__TEMPLATES__.'/Debug/Exception.phtml'); // or whatever | |
} |
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 MyApplication\Controller; | |
use Hydrogen\Controller; | |
use Hydrogen\TemplateRenderer; | |
class Error extends Controller | |
{ | |
use TemplateRenderer; |
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 MyApplication\Controller; | |
use Hydrogen\Controller; | |
use Hydrogen\MultiTemplateRenderer; | |
class Error extends Controller | |
{ | |
use MultiTemplateRenderer; | |
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 MyApplication\Controller; | |
use Hydrogen\Controller; | |
use Hydrogen\MultiTemplateRenderer; | |
class Error extends Controller | |
{ | |
use MultiTemplateRenderer; | |
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
, | |
,-. _,---._ __ / \ | |
/ ) .-' `./ / \ | |
( ( ,' `/ /| | |
\ `-" \'\ / | | |
`. , \ \ / | | |
/`. ,'-`----Y | | |
( ; | ' | |
| ,-. ,-' | / | |
| | ( | | / |
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
// John's code | |
$array = [ | |
'fuwhefuiwe' => new Thing(wefuhwe, wefiuwehfuw, json_encode(weifuhwe)), | |
'uiwefhiwe' => new Thing(weuifhwegtrtrhrth, weoifwe, json_encode(weiufwe)), | |
'fuw' => new Thing(ef, gfe, json_encode(regfre)), | |
'fuwhefuiwe' => new Thing(wefuhwe, wefiuwehfuw, son_encode(weifuhwe)), | |
'uiwefhiwe' => new Thing(weuifdsfghwe, weoifwe, json_encode(weiufwe)), | |
'fuw' => new Thing(ef, gfe, json_encode(regfre)), | |
'fuwhefuiwe' => new Thing(wefuhwe, wefiuwehfuw, json_encode(weifuhwe)), | |
'uiwefhiwe' => new Thing(weuidfgfhwe, weoifwe, json_encode(weiufwe)), |
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
$a = new Thing (a, b); | |
$cccc = new OtherThing (x, y, z); | |
$ddddd = new AnotherThing(m); |
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
{ | |
"href": "http://api.x.io/orders/42", | |
"data": { | |
"properties": { | |
"orderNumber": 42, | |
"itemCount": 3, | |
"status": "pending" | |
}, | |
"links": [ | |
{ "rel": [ "profile" ], "href": "/profiles/order" }, |
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
{ | |
"class": [ "order" ], | |
"properties": { | |
"orderNumber": 42, | |
"itemCount": 3, | |
"status": "pending" | |
}, | |
"entities": [ | |
{ | |
"class": [ "items", "collection" ], |
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
<ul data-zc-options id="track_render"> | |
<li class="active">HTML 5</li> | |
<li>Flash</li> | |
<li>SVG</li> | |
<li>Image</li> | |
<li>VML</li> | |
</ul> |
OlderNewer