Try setting application.urlBase in the OnApplicationStart section,
unless you really want this to be in the variables scope.

-Mike Chabot

On Fri, Aug 15, 2008 at 7:07 PM, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> You can only set to the variables scope from onRequest, which has some
> limitations on use.  From onRequestStart, you can set into the
> request, session, application, and server scopes.
>
> cheers,
> barneyb
>
> On Fri, Aug 15, 2008 at 3:51 PM, John P <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I'm interested in setting a base url in my application.cfc which I will be 
>> able to reference from all .cfm pages.
>>
>> I've tried it in onReqestStart and onApplicationStart and it doesn't seem to 
>> be working, I get a variable base is undefined error.
>>
>>  <cffunction name="onRequestStart" returnType="void">
>>        <cfset base = "http://mywebsite.com";>
>>  </cffunction>
>>
>> Thanks, John
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311068
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to