The session has the current user id, if it matches the author of the page, then the route works, otherwise it is redirect.This moment is understandable.

The question is - how to organize it? I want to use the middleware class.I can not understand where to check the author of the page.
  • A framework to specify? At least in tags. – Combat20 May 16 '19 at 13:59
  • Combat20, slim php. – Dizzy100 May 16 '19 at 18:35

1 Answers 1

I want to use the middleware class.I can't understand where to check the author of the page.


Before the moment of receiving the page data from the database