Releases: rawsrc/PhpEcho
New release : version 2.2.0
NEW FEATURE IN PhpEcho v2.2.0:
- You have now access to the global
<head></head>
from any PhpEcho child block - New helpers rendering HTML tags in a secure way
- Use a relative path from the current instance to target any child PhpEcho file
IDE Autocompletion for helpers
To activate this feature in your favorite IDE:
add in each view file: /** @var $this PhpEcho */
as the first line of code and normally the magic works.
So this is now equivalent:
<?= $this('$hsc', 'any value to escape') ?>
<?= $this->hsc('any value to escape') ?>
For the second version, you get the direct access through autocompletion.
Please see also the standard helpers library, especially for the helper $is_scalar
and its equivalent as a function isScalar()
.
See also how the dynamic methods (your helpers) to list are added as lines of comment in the header of PhpEcho
New release : version 2.0.0
New feature :
Create, use and inject your own code snippets as helpers to render easily your HTML/CSS/JS code.
Performance optimization: no more redundant code execution of binding closures to the current instance of PhpEcho
New feature :
- Block's execution id for closed context
PHP7+ :: Execution id
New feature :
- Block's execution id for closed context
PHP5.3+ :: Initial release :
- helper for files inclusion
- using heredoc notation instead of file inclusion mechansim
PHP7+ :: Initial release
First version of PhpEcho :
- helper for files inclusion
- using heredoc notation instead of file inclusion mechansim