Skip to content

Releases: wireframe-framework/Wireframe

0.18.0

08 Nov 19:16
525e39b
Compare
Choose a tag to compare

Added

  • Tracy panel for Wireframe.

0.17.1

17 Oct 11:19
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where Config class path creation wasn't working properly due to missing Wireframe module instance.

0.17.0

20 Sep 12:54
bc0bd83
Compare
Choose a tag to compare

Added

  • Controller objects have a new method called setPage(), used to set the page property of a specific Controller instance. Additionally this method accepts a boolean that (if set to true) propagates the change to the connected View object as well.

Changed

  • Constructor of Controller class was simplified so that neither argument ($page or $view) is required. If one (or both) of these is left out (or provided with null value), corresponding property will fall back to API variable ($this->wire('page') or $this->wire('view')).
  • Controller base class "view" and "page" properties are now private. Accessing them directly behaves much like before, but is now routed via a setter method (setPage() or setView()). Setting the "page" property directly also updates the page property of the related View instance; this is a shortcut for $this->setPage($page, true).
  • If the page property of the View has been defined, it will override the $page API variable render-time. This behaviour is more consistent than before, where "global" $page was used in some situations, "local" (View) page property in others.

0.16.0

14 Sep 12:05
92c323d
Compare
Choose a tag to compare

Added

  • Support for specifying view and view template at the same time with Page::setView('[view template name]/[view name]').

Changed

  • Wireframe module now updates the internal settings hash more consistently. This hash is primarily used for runtime page render caching.

0.15.2

13 Sep 15:57
Compare
Choose a tag to compare

Changed

  • Specify return type of Config::getPaths() as stdClass instead of object for PHP < 7.2.

0.15.1

13 Sep 10:25
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where partial files were not rendered properly if a Renderer module was enabled.

0.15.0

11 Sep 14:25
3e2277d
Compare
Choose a tag to compare

Added

  • Internal stash for storing previous Page, View, and Controller instances in case a Page is rendered within another Page. This way earlier context can be restored once recursive rendering is done, and Wireframe can continue where it left off.

0.14.0

06 Sep 17:13
ac79233
Compare
Choose a tag to compare

Added

  • New ComponentView class, as well as the ability for component views to access Component class public methods as properties, in the same way view files and layouts can access Controller class public methods.

Changed

  • Hook related code moved from Wireframe module to separate Hooks class.
  • Accessing public class methods as properties in view files were moved into new trait MethodPropsTrait. This is used internally by Controller and Component classes.
  • Some minor improvements related to dependency injection within Wireframe objects (and ProcessWire objects instantiated by Wireframe.)

0.13.2

02 Sep 20:20
Compare
Choose a tag to compare

Fixed

  • An issue where null value passed to Component view or partial never reached the actual view file, resulting in undefined variable notices (and potentially other unexpected issues).

0.13.1

31 Aug 18:06
Compare
Choose a tag to compare

Fixed

  • Config class getPaths() method had wrong return type specified, rendering module config screen unusable.