Ivan Gretsky Posted December 14, 2021 Share Posted December 14, 2021 In the project I am working on right now login and logout are handled with simple procedural code in _init.php on page reload. What would be the best way to do this in Wireframe? Put this code in bootstrap file (templates/wireframe.php)? This doesn't look pretty and in line with how everything else is structured. Have a common controller and subclass it? How would this work for templates that do not have controllers? Use built-in custom classes? What would you suggest? Link to comment Share on other sites More sharing options...
Mats Posted January 2, 2022 Share Posted January 2, 2022 Did you try using a utility class? https://wireframe-framework.com/docs/patterns-and-practices/utility-classes/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now