Ryan Albrecht
12/20/2022, 9:44 PMJim Priest
12/21/2022, 12:18 AMsalted
12/21/2022, 12:04 PMsalted
12/21/2022, 12:04 PMsalted
12/21/2022, 12:07 PMdomwatson
12/21/2022, 1:28 PMsalted
12/21/2022, 2:39 PMdfgrumpy
12/22/2022, 6:32 PMChristopher Bare
12/22/2022, 8:17 PMOokma-Kyi
12/23/2022, 1:32 AMvariable [CHARACTER_COUNT] doesn't exist
I am passing in the variable into the view:
Handler:
component extends="coldbox.system.EventHandler" secured {
// Default Action
function index( event, rc, prc ){
prc.pageTitle = "Characters";
var character_count = getInstance("character")
.where("userid", auth().user().getID() ?: -1 )
.count();
if (character_count > 0 ) {
var characters = getInstance("character")
.where("id", auth().user().getID() ?: -1 );
}
event.setView( "characters/index", { character_count: character_count } );
}
}
View:
<cfoutput>
<h1>Characters</h1>
<cfif character_count EQ 0>
<p>No Characters, why not create one?</p>
</cfif>
</cfoutput>
Any ideas?Robert Zehnder
12/23/2022, 2:28 PMevent.overrideEvent
. Currently, if the override doesn’t exist I have it setup to show the 404 page. I would like to be able to check to see if the event exists before overriding it.bdw429s
12/23/2022, 6:09 PMOokma-Kyi
12/24/2022, 8:32 PMDave Merrill
12/24/2022, 9:38 PMDave Merrill
12/24/2022, 9:42 PMRobert Zehnder
12/28/2022, 7:29 PMRobert Zehnder
12/28/2022, 9:13 PMprint
from inside models/services. Currently, if I want to print to the console from a service, I am passing in an instance of print
as an argument to my service method.teaman
12/29/2022, 4:45 PMERROR: Error reloading cached bundle, removing it: C:\Users\bholm\.CommandBox\engine\cfml\cli\lucee-server\felix-cache\bundle9
java.io.FileNotFoundException: C:\Users\bholm\.CommandBox\engine\cfml\cli\lucee-server\felix-cache\bundle9\<http://bundle.info|bundle.info> (The system cannot find the file specified)
but then it continued on and came to the commandbox prompt. I Quit and tried again thinking it was clearing a cache index but I got the same result. How is this resolved?elpete
12/30/2022, 3:47 PMaccessors="true"
on the metadata. If so, CFML generates get#propertyName#
and set#propertyName#
methods you can use. If you don’t want accessors="true"
on the component, you will need to provide your own methods that access the properties.Mauro caresimo
12/30/2022, 4:51 PMjamiejackson
12/30/2022, 5:54 PMindex.cfml
in lucee 5.3.10.97?jamiejackson
12/30/2022, 6:43 PMserver start
would have the web root at the current directory, but maybe not? how to do so?
(i'm still trying to figure out which directory i'm seeing in the browser.)David Rogers
12/30/2022, 7:42 PMgetInstance("foo").whereHas("bar", (barInstance) => {
var name = barInstance.getFrom(); // treating barInstance as a QuickBuilder <: QueryBuilder
writedump(name); // "bartable bartable_1"
barInstance.where(...)
})
where we'd like to know we need to ref it as bartable_1
if we put a selectRaw or similar in the scopejamiejackson
12/30/2022, 7:46 PMserver.json
at least look okay? https://gist.github.com/jamiejackson/96b83c3a83e9ac44a8d6a3699bf59ba5Charles Robertson
01/06/2023, 3:50 PMC:\domains\<http://acf-lucee.com|acf-lucee.com>\wwwroot\
The reason why it has to use the same system path is because when the application was built, someone hardcoded a system path for many of the mappings in the Application.cfc
[yes I know. It is legacy code hell 😱]
The system path root is:
D:\wwwroot
I have had to use mklink
to create a Junction on this folder, so that it points to:
C:\domains\<http://acf-lucee.com|acf-lucee.com>\wwwroot\
So, if I have two different engines powering this codebase, both must point to the same physical address.
I can see some of the problems here. How can I make the:
server.json
In the the webroot, fire up two different engines?
This might work, if I can call `server.json`:
server-lucee.json
server-acf.json
Is this possible?
In my recipe, how do I tell CommandBox to look for something other than server.json
garciadev
01/06/2023, 4:02 PMseandaniels
01/12/2023, 5:38 PM/kb
"directory" to <http://mydomain.helpjuice.com|mydomain.helpjuice.com>
as described here: https://help.helpjuice.com/en_US/helpjuice-subdirJordan Clark
01/13/2023, 10:46 PMseandaniels
01/14/2023, 3:55 PM"fusionreactor":{
"enable":true,
"licenseKey":"${FR_LICENSEKEY}",
"debugEnable":false,
"port":"8089",
"password":"${LUCEE_ADMIN_PASSWORD}",
"cloudGroup":"dealstream,${FR_CLOUDGROUP}",
"defaultApplicationName":"dealstream",
"licenseDeactivateOnShutdown":true,
"ChatEnabled":false
}
I have the various environment variables referenced in that snippet in a .env file in the same app root. But when I do server start
, none of those .env variables appear to get populated. I have the commandbox-dotenv package installed... am I missing something?dougcain
01/16/2023, 9:51 AM