|
- <%
- Class HomeController_Class
- Private m_useLayout
- Private m_title
-
- Private Sub Class_Initialize()
- m_useLayout = True
- m_title = "Home"
- End Sub
-
- Public Property Get useLayout
- useLayout = m_useLayout
- End Property
-
- Public Property Let useLayout(v)
- m_useLayout = v
- End Property
-
- Public Property Get Title
- Title = m_title
- End Property
-
- Public Property Let Title(v)
- m_title = v
- End Property
-
- Public Sub Index()
- %>
- <!--#include file="../views/Home/index.asp" -->
- <%
- End Sub
-
- ' Static action dispatch (AxonASP mishandles runtime-built Eval/Execute calls),
- ' called through <Name>Controller_Invoke at the bottom of this file.
- Public Sub Invoke(actionName, args)
- Select Case LCase(actionName)
- Case "index" : Index
- Case Else
- Err.Raise 438, "HomeController_Class", "Action '" & actionName & "' not found"
- End Select
- End Sub
-
- End Class
-
- Dim HomeController_Class__Singleton
- Function HomeController()
- If IsEmpty(HomeController_Class__Singleton) Then
- Set HomeController_Class__Singleton = New HomeController_Class
- End If
- Set HomeController = HomeController_Class__Singleton
- End Function
-
- ' Global entry point used by MVC_InvokeAction via GetRef. A separate call site per controller
- ' avoids AxonASP binding a shared call site to the first controller's Invoke.
- Sub HomeController_Invoke(actionName, args)
- HomeController().Invoke actionName, args
- End Sub
- %>
|