Consolidated ASP Classic MVC framework from best components
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

43 строки
864B

  1. <%
  2. Class HomeController_Class
  3. Private m_useLayout
  4. Private m_title
  5. Private Sub Class_Initialize()
  6. m_useLayout = True
  7. m_title = "Home"
  8. End Sub
  9. Public Property Get useLayout
  10. useLayout = m_useLayout
  11. End Property
  12. Public Property Let useLayout(v)
  13. m_useLayout = v
  14. End Property
  15. Public Property Get Title
  16. Title = m_title
  17. End Property
  18. Public Property Let Title(v)
  19. m_title = v
  20. End Property
  21. Public Sub index()
  22. %>
  23. <!--#include file="../views/Home/index.asp" -->
  24. <%
  25. End Sub
  26. End Class
  27. Dim HomeController_Class__Singleton
  28. Function HomeController()
  29. If IsEmpty(HomeController_Class__Singleton) Then
  30. Set HomeController_Class__Singleton = New HomeController_Class
  31. End If
  32. Set HomeController = HomeController_Class__Singleton
  33. End Function
  34. %>

Powered by TurnKey Linux.