Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| feb0308d68 | |||
| f2e2f1244a | |||
| 8d2e197ffa | |||
| 9f8df8dce3 | |||
| 124f70cf17 | |||
| 75cb3f41e0 |
@@ -196,7 +196,7 @@ class MDTwigExtension extends AbstractExtension {
|
||||
\IntlDateFormatter::NONE
|
||||
);
|
||||
|
||||
$df->setPattern('d-LLL-yy');
|
||||
$df->setPattern('dd-LLL-yy');
|
||||
$d = $df->format(new \DateTime($value));
|
||||
return strtoupper(str_replace(".", "", $d));
|
||||
}
|
||||
|
||||
@@ -113,4 +113,10 @@ class Request {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change or set the value of a parameter.
|
||||
*/
|
||||
public function setQueryParameter(string $key, string $value = "") {
|
||||
$this->post[$key] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ class TwigRender {
|
||||
/**
|
||||
* Add global variable(s) to template.
|
||||
*
|
||||
* @return string
|
||||
* @return object
|
||||
*/
|
||||
public function addGlobals($name, $value) : self {
|
||||
$this->twig->addGlobal($name, $value);
|
||||
|
||||
Reference in New Issue
Block a user