Skip to content

Releases: rawsrc/PhpEcho

Version 6.1.1 - Minor update: infinite loop detection as an option

26 Sep 08:08
Compare
Choose a tag to compare

Hi,

this version is a minor update, regarding some performance problems with the infinite loop detection feature.
This is now an option disabled by default to preserve the engine rendering speed.

Version 6.1.0

24 Sep 16:04
783406e
Compare
Choose a tag to compare

New version 6.1.0:

  • Many code improvements
  • Parameter the way the engine is looking for a user value
  • Render any recursive array of PhpEcho blocks
  • Detect an infinite loop on rendering
  • Cloning a PhpEcho block is now explicitly forbidden
  • Tests are updated
  • Manual in English and French

Bugfix Release : 6.0.1

13 Aug 15:28
Compare
Choose a tag to compare

Minor bugfix in addBlock()

Version 6

12 Aug 20:44
53f8070
Compare
Choose a tag to compare

Hello,

This version is a major update of the engine and may slightly break your previous code.
Please have a look at changelog.md and readme.md section AUTO WIRING VARS for explanations

rawsrc

Minor update: visibility access

09 May 09:06
Compare
Choose a tag to compare

Minor update, change the visibility access of the $data array in the ViewBuilder class from private to public.
You can still use the class as an array (the ArrayAccess interface is preserved)

Tests files are updated

Version 5.4.1

01 May 08:38
Compare
Choose a tag to compare

This a bugfix release.

In the private method isArrayOfPhpEchoBlocks, when the parameter was an empty array, you got a warning on rendering.

Test files are updated

Version 5.4.0

17 Apr 15:38
Compare
Choose a tag to compare

Add a new abstract ViewBuilder class. The complex views (eg: pages) are now seen as a whole and can be used as object.
This class brings a cleaner solution for building heavy views.

Test files are updated to 5.4.0

Version 5.3.1

09 Apr 21:38
Compare
Choose a tag to compare

New option to return natively null when a key doesn't exist instead of throwing an Exception
By default this option is not activated.
To activate, use: PhpEcho::setNullIfNotExist(true);; to deactivate, use: PhpEcho::setNullIfNotExist(false);

Test files are updated

Better parameters management

19 Mar 20:36
Compare
Choose a tag to compare

New version (5.3.0) with some useful enhancements for parameters management.

  • The method hasGlobalParam(string $name) is now static
  • You can now define the seek order to get the first value either from the local or global context using
    getAnyParam(string $name, string $seek_order = 'local'): mixed
  • It's possible to set a parameter in the local and the global context at once using setAnyParam(string $name, mixed $value)
  • It's possible to unset a parameter from the local and the global context at once using unsetAnyParam(string $name)
  • It's possible to check if a parameter exist in the local or global context using hasAnyParam(string $name): bool

Tests are updated

rawsrc

Version 5.2.1

12 Mar 09:19
Compare
Choose a tag to compare

Minor update

This version will not break the compatibility with the code for the previous version

Drastically improving the local and global parameters' management

  • Add new method getAnyParam(string $name) that will return first the local value of the parameter if defined or the global value instead or throw finally an exception if the parameter is unknown
  • Offers the possibility to unset any local or global parameter using unsetParam(string $name) or unsetGlobalParam(string $name)
  • You can now check if a parameter is defined either in the local or global array using hasAnyParam(string $name)

Test files are updated