Luis,
The config file is the same config file that came with the application template, the interceptor is the one in samples directory there is nothing more I can provide.
I added the interceptor into the config file as it is in that sample application. The interceptor code is unchanged, and does what it has to do. It also uses the same views / handler as that sample application. As well as the login method check against the xml file.
All I know, is that when line debugging.
if ( event.getCurrentEvent() eq “ehGeneral.doLogin” )
returns the full url path or is not excepting the event ehGeneral.doLogin, I do not know why or how it is but it is. I have not modified any code from the sample applications at all. And the config xml file is unchanged except for the inclusion of the interceptor, which is just this
So as event.getCurrentEvent() is a coldbox framework, and that instance is set and instantiated by the framework I am at a loss to explain this as well.
Again I am sorry, I can’t explain it anymore than I have already. I am just using the sample code that comes with the RC2 of coldbox and nothing more or extra.
Test #1:
Line break on the above mentioned line, and the current event is ehGeneral.dspHome or ehGeneral.doLogin if logging in.
Test #2:
Changed the eventName to eventName = do, when it passes over the above line. The CurrentView is never equal to ehGeneral.doLogin. So the loggingIn = true never gets reached, I have no reason why this is the case but only happens when I change the eventName to something other than event. I can’t explain it, and I now it is a sample application. But it doesn’t work.
Test #3:
Changed eventName back to eventName = event, and turned SES back on. Which uses the same routes file as the sample SES application uses. The behaviour here is that of Test #2, the CurrentEvent is always ehGeneral.dspHome and never changes to ehGeneral.doLogin.
Now if I remove the SES, and leave the eventName as event. Make no other changes it works again.
How do I explain with no code changes, this happens?
And yes, I reload the framework before I did each test.
Like I stated, this is all coming from the sample code within coldbox samples.
Please don’t ask me for any more code snippets, you already have them. But if you want me to zip it up and send it to you, then I am more than happy too. But as I said I never wrote the code, I just expect it to work the way it looks like it should.