Jump to content

What is the best way to add controller action for all templates


Ivan Gretsky
 Share

Recommended Posts

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?

  1. Put this code in bootstrap file (templates/wireframe.php)? This doesn't look pretty and in line with how everything else is structured.
  2. Have a common controller and subclass it? How would this work for templates that do not have controllers?
  3. Use built-in custom classes?

What would you suggest?

Link to comment
Share on other sites

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...