CB [coldbox-4.1.0+00002-201504151028]

8 views
Skip to first unread message

Jeremy R DeYoung

unread,
Jun 1, 2016, 1:50:22 PM6/1/16
to ColdBox Platform
I'm having an issue where I have a module with a folder named swAjax.


Inside the ModuleConfig.cfc it says the following

this.entryPoint = "ajax";
// Model Namespace
this.modelNamespace = "ajax";
// CF Mapping
this.cfmapping = "ajax";

When I call runEvent as follows
runEvent( event="ajax:handler.action", prePostExempt=true, defaultEvent=false, eventArguments={}, cache=false );

it does not work whereas 
runEvent( event="swAjax:handler.action", prePostExempt=true, defaultEvent=false, eventArguments={}, cache=false );

works correctly.

Is this a misunderstanding I have with Modules entryPoint? I've always assumed the entryPoint was the correct way to reference a module via any event.

Oddly, sitedomain.com/ajax/handler/action works correctly

Am I missing the boat here?

br...@bradwood.com

unread,
Jun 1, 2016, 2:05:30 PM6/1/16
to col...@googlegroups.com
The entry point is only used by the SES interceptor for mapping a route to a module/handler/action.  The "moduleName:handler.action" syntax uses the actual name of the module which is based off the folder name.  I think there's a this.name you can put in ModuleConfig.cfc but I'm not sure if it actually changes the internal name that ColdBox uses for that module

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
Subject: [coldbox:25728] CB [coldbox-4.1.0+00002-201504151028]
From: "Jeremy R DeYoung" <Jer...@NextStep.Guru>
Date: 6/1/16 12:50 pm
To: "ColdBox Platform" <col...@googlegroups.com>

I'm having an issue where I have a module with a folder named swAjax.
Inside the ModuleConfig.cfc it says the following
 
this.entryPoint= "ajax";
// Model Namespace
this.modelNamespace= "ajax";
// CF Mapping
this.cfmapping= "ajax";
 
When I call runEvent as follows
runEvent( event="ajax:handler.action", prePostExempt=true, defaultEvent=false, eventArguments={}, cache=false );
 
it does not work whereas 
runEvent( event="swAjax:handler.action", prePostExempt=true, defaultEvent=false, eventArguments={}, cache=false );
 
works correctly.
 
Is this a misunderstanding I have with Modules entryPoint? I've always assumed the entryPoint was the correct way to reference a module via any event.
 
Oddly, sitedomain.com/ajax/handler/action works correctly
 
Am I missing the boat here?
 

 

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/CAFy17umLZar0kcXr_shqx5ssK9sqs6Hh4tWLbMrQvF7NarVnqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Jeremy R DeYoung

unread,
Jun 1, 2016, 3:14:44 PM6/1/16
to ColdBox Platform
Reply all
Reply to author
Forward
0 new messages