Consolidated ASP Classic MVC framework from best components
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

38 lignes
799B

  1. <%
  2. Class ErrorController_Class
  3. Private m_useLayout
  4. Private Sub Class_Initialize()
  5. m_useLayout = True
  6. End Sub
  7. Public Property Get useLayout
  8. useLayout = m_useLayout
  9. End Property
  10. Public Property Let useLayout(v)
  11. m_useLayout = v
  12. End Property
  13. Public Sub Index()
  14. Response.Write "Index called"
  15. End Sub
  16. Public Sub NotFound()
  17. Response.Status = "404 Not Found"
  18. %>
  19. <!--#include file="../Views/Error/NotFound.asp" -->
  20. <%
  21. End Sub
  22. End Class
  23. Dim ErrorController_Class__Singleton
  24. Function ErrorController()
  25. If IsEmpty(ErrorController_Class__Singleton) Then
  26. Set ErrorController_Class__Singleton = New ErrorController_Class
  27. End If
  28. Set ErrorController = ErrorController_Class__Singleton
  29. End Function
  30. %>

Powered by TurnKey Linux.