mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Add error checking directive and unit tests for it
This commit is contained in:
parent
d4654eb5cf
commit
0f14ad8ccf
5 changed files with 98 additions and 0 deletions
|
|
@ -62,6 +62,10 @@ class TemplateParser_v2
|
|||
'ob_start(); $__last_fragment_name = %s;',
|
||||
"\$this->_fragments[\$__last_fragment_name] = ob_get_flush();",
|
||||
],
|
||||
'error' => [
|
||||
'if ($this->_v2_errorExists(%s)):',
|
||||
'endif;',
|
||||
],
|
||||
'isset' => ['if (isset(%s)):', 'endif;'],
|
||||
'unset' => ['if (!isset(%s)):', 'endif;'],
|
||||
'empty' => ['if (empty(%s)):', 'endif;'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue