Skip to content

0.9.0

Compare
Choose a tag to compare
@teppokoivula teppokoivula released this 02 Feb 18:50
· 212 commits to master since this release

Added

  • New EventListenerTrait. Currently used by Components only. Adds support for listening to and emitting events.
  • Support for Renderer modules for adding templating engine support for view files, component view files, etc.
  • New Page methods Page::viewTemplate(), Page::getViewTemplate(), and Page::setViewTemplate().
  • New method Component::getData() for manually defining the data passed to the component view.

Changed

  • Controller::init() and Controller::ready() are now hookable methods.
  • Component::setView() and Component::getView() are now final methods, preventing accidental overrides.
  • Layout file is no longer necessary; if it's missing, the page can be rendered using just a view file.