root/coldbox/trunk/src/handlers/log/ehTest.cfc @ 718

Revision 718, 1.2 kB (checked in by lmajano, 6 years ago)

work in progress...

  • Property svn:executable set to *
Line 
1<!-----------------------------------------------------------------------
2Author   :      Luis Majano
3Date     :      September 25, 2005
4Description :                   
5        General handler for my hello application. Please remember to alter
6        your extends base component using the Coldfusion Mapping.
7
8        example:
9                Mapping: fwsample
10                Argument Type: fwsample.system.eventhandler
11Modification History:
12Sep/25/2005 - Luis Majano
13        -Created the template.
14----------------------------------------------------------------------->
15<cfcomponent name="ehTest" extends="coldbox.system.eventhandler">
16
17        <!--- ************************************************************* --->
18        <cffunction name="dspapi" access="public" returntype="void" output="false">
19                <cfargument name="Event" type="coldbox.system.beans.requestContext">
20                <cfset var rc = Event.getCollection()>
21                <cfset rc.cfcViewer = getPlugin("cfcViewer")>
22                <cfset Event.paramValue("show", "plugins")>
23               
24                <cfif rc.show eq "plugins">
25                        <cfset rc.cfcViewer.setup("/coldbox/system/plugins","coldbox/system/plugins")>
26                <cfelse>
27                        <cfset rc.cfcViewer.setup("/coldbox/system/","coldbox/system/")>
28                </cfif>         
29                <cfset Event.setView("vwAPI")>
30        </cffunction>
31        <!--- ************************************************************* --->
32       
33</cfcomponent>
Note: See TracBrowser for help on using the browser.