There's some GnuTLS bug, that causes this error when cloning using git clone
:
error: RPC failed; result=56, HTTP code = 200
Workaround:
mkdir your-project
<?php | |
header('content-type: text/html; charset=utf-8'); | |
$pattern = isset($_POST['pattern']) ? $_POST['pattern'] : '~^$~'; | |
$subject = isset($_POST['subject']) ? $_POST['subject']: ''; | |
?> | |
<h1>Preg_match tester</h1> | |
<form method="post"> |
<?php | |
/** | |
* Homepage presenter. | |
*/ | |
class HomepagePresenter extends BasePresenter | |
{ | |
private $a, $b, $c; |
<?php | |
namespace VS\UI; | |
/** | |
* Simple form generator for plain old data objects. | |
* | |
* Creates a field for each scalar setter. Nothing more. | |
* | |
* @author Václav Šír |
<?php | |
header('Content-type: text/html; charset=utf-8'); | |
?> | |
<title>De-Quote</title> | |
<form method="post"> | |
<textarea name="input" cols="80" rows="10"><?php echo htmlspecialchars(@$_POST['input']); ?></textarea><br> | |
<textarea name="output" cols="80" rows="10"><?php | |
if (isset($_POST['input'])) { | |
echo htmlspecialchars( |
$ ab -n 2000 -c 10 http://localhost/framework-bench/helloworld/codeigniter/index.php/say/hello | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 200 requests | |
Completed 400 requests | |
Completed 600 requests | |
Completed 800 requests |
{assertVariables | |
number => float, | |
message => string, | |
property => 'Hell\Model\Property', | |
identity => 'Nette\Security\IIdentity', | |
arrayOrIterator => 'Model\Item[]', | |
optionalParameter => 'SomeType|NULL' | |
anyType => mixed, | |
anyTypeOrNull => 'mixed|NULL', | |
anyArrayOrIterator => 'mixed[]' |
<?php | |
namespace Articles; | |
use Nette\Application\UI\Presenter; | |
abstract class BasePresenter extends Presenter | |
{ | |
public function formatTemplateFiles() |
<?php | |
namespace Test; | |
use Nette, | |
Tester, | |
Tester\Assert, | |
AdminModule; | |
$container = require __DIR__ . '/../../bootstrap.php'; |
There's some GnuTLS bug, that causes this error when cloning using git clone
:
error: RPC failed; result=56, HTTP code = 200
Workaround:
mkdir your-project
Projít definici formuláře:
setRequired
, tak si zpracování musí poradit s prázdným řetězcem, nebo ho změnit na něco, s čím si poradí (třeba NULL).SelectBox
má prompt, tak může být hodnotou NULL (pokud není setRequired
).