Version: 2.11.3 Reporter: Frans Cooijmans —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
When parsing date variables in a custom module, this doesn’t work:
$date_from = time();
$variables['date_from'] = $date_from;
$variables['date_from_next'] = strtotime("+1 days",$date_from);
$variables['date_from_prev'] = strtotime("-1 days",$date_from);
return ee()->TMPL->parse_variables(ee()->TMPL->tagdata, array($variables));
{date_from_next} and {date_from_prev} are parsed with the value of {date_from}
if i assign the variables like this (in different order), it works:
$date_from = time();
$variables['date_from_next'] = strtotime("+1 days",$date_from);
$variables['date_from_prev'] = strtotime("-1 days",$date_from);
$variables['date_from'] = $date_from;
return ee()->TMPL->parse_variables(ee()->TMPL->tagdata, array($variables));
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```