Skip to content

Releases: rawsrc/PhpEcho

New Release: bug pushing files

03 Oct 08:46
Compare
Choose a tag to compare

I don't know why the last push did not work. This release is up to date now.

You have now the possibility to define a global parameter that will be available through all PhpEcho instances using
PhpEcho::setGlobalParam() and read using PhpEcho::getGlobalParam()

New feature: global parameter definition

03 Oct 08:01
Compare
Choose a tag to compare

Minor update of 4.0.1

You have now the possibility to define a global parameter that will be available through all PhpEcho instances using
PhpEcho::setGlobalParam() and read using PhpEcho::getGlobalParam()

BugFix

30 May 15:22
Compare
Choose a tag to compare

BUGFIX in renderByDefault() method.
Short the rendering code: it's possible now to send directly either the default block view or the defined one using renderByDefault()

<?= $this->renderByDefault('menu', 'block default_menu.php') ?>

New release - PHP 8+

24 Mar 14:12
7a49896
Compare
Choose a tag to compare

PhpEcho : Pure PHP template engine

Is only compatible with PHP 8 and above.

New release : version 3.0.1 - Bugfix

15 Sep 09:39
Compare
Choose a tag to compare

Bugfix : in stdPhpEchoHelpers.php, add the use rawsrc\PhpEcho\PhpEcho; in the header

New release : version 3.0.0

12 Sep 17:22
fec066c
Compare
Choose a tag to compare

Many code improvements. Adding some features asked by different users.
Check Readme.md for details.

rawsrc

New release : version 2.3.2

18 Apr 09:38
Compare
Choose a tag to compare

This is the last release for the branch 2.x
This is a stable version, no more improvements or updates apart for bugfixes
.

Change the signature of addChild().
Now when creating a new child block, it's possible in the same time to link it to a var in the current creator scope.

// before
// $parent block create a child block from its local path
$child = $parent->addChild('path to the file' /*, other params */); 
$parent['any_var'] = $child; // the child is linked to its parent

// now
$child = $parent->addChild('any_var', 'path to the file' /*, other params */);

// internally the link is created automatically if the var is defined
$parent['any_var'] = $child

New release : version 2.3.1

18 Apr 07:38
5f73fd3
Compare
Choose a tag to compare

NEW FEATURES IN PhpEcho v.2.3.1:

  1. Each PhpEcho instance can now define their own parameters.
  2. Parameters remain raw value and are never escaped.
  3. The engine will always seek for a parameter value from the current block to the root.

Changelog:
The helper param() becomes officially a method of PhpEcho class
The old helper param() is renamed to rootKey()
New helper : $seek_param

New release : version 2.3.0

17 Apr 08:53
0d54389
Compare
Choose a tag to compare

New features :

  1. Preserve the type of value using array notation and escaping only when necessary
  2. The way to access to the <head></head> is updated : the head()->add() is replaced by addHead() and head()->render() by head()
  3. New helpers added in the standard library

Bugfix and return stored values (objects) as it

15 Apr 05:04
Compare
Choose a tag to compare

Bugfix on helpers: $script and $style when use only plain code.

Now the returned value using the array access notation preserve any class instance even if the instance implements the magic method __toString()