Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: moble site architecture

$
0
0

I solved this issue by adding another application.cfc in the mobile directory:

 

<cfcomponent extends="intranet.Application">

 

  <cfset this.name="mobile" >

   

    <cffunction name = "onApplicationStart">

         <cfset super.onApplicationStart()>

    </cffunction>

   

    <cffunction name="onRequestStart">

        <cfset super.onRequestStart()>

    </cffunction>

   

</cfcomponent>

 

Then, I just check if the user is on the mobile site or not with:

 

 

 

<cfif application.applicationname EQ 'mobile'>

               do something

                              <cfelse>

 

               do something else

                              </cfif>

 

Thanks for the help


Viewing all articles
Browse latest Browse all 21760

Trending Articles