This repository has been archived by the owner on Aug 1, 2021. It is now read-only.
Version v0.2 released
This release is about enhancing the user experience, fixing bugs and addressing the limitations of some components.
Changelog:
- The
escape()
method was added to the AbstractView to be used in templates, so you can escape variables to prevent XSS (useshtmlspecialchars
). renderTemplate()
method was added to the AbstractView to enable file paths relative to theApp/View/
directory.- Fixed loss of session data immediately after the session expired.
- Session tools, session ID regeneration and session startup were merged into one class,
Session
. - Feedback message component was completely redesigned. You will now add a feedback by passing the type and the message itself in the method call, very similar to how Symfony's Flash messages work.
- Redesigned directory structure inside
Fragments/
. - Helper methods were added to the AbstractController to obtain a session or request objects.
- Added a
Security/Csrf
component, with a method to generate a token in the AbstractView (for the templates) and a method to retrieve and validate the tokens in the AbstractController.