| That could maybe get you somewhere, but ColdSpring should definitely create your productController, whether you use contructor-arg or setters. One question, these are ModelGlue controllers? Hm, wonder, maybe MG is doing something with those controllers that is messing with the type. Wait, brain working. Can you post the init method of your productcontroller? It probably extends ModelGlue.Core.Controller and that's the return type of your init, right? So that also needs to be the type of your constructor-arg: Init method of WizardController: <CFFUNCTION name="init" returntype="controller.wizardcontroller" output="false" access="public"> <cfargument name="PController" type="ModelGlue.Core.Controller" required="true" hint="Dependency product controller"/> <cfset variables.prodcontroller = arguments.PController/> <CFRETURN this /> </CFFUNCTION> On Jul 14, 2006, at 6:54 PM, Simeon Bateman wrote: Well I dont know why that is giving you trouble. As a troubleshooting step I would say make the type on the arguement "any" and then send yourself a dump of arguments to see what type it is. My guess is that the other controller has not be constructed yet so it can not be supplied as a dependency. |
- [coldspring-dev] hair puller Doug Boude
- [coldspring-dev] hair puller Simeon Bateman
- [coldspring-dev] hair puller Dave Ross
- [coldspring-dev] hair puller Chris Scott
- [coldspring-dev] hair puller Chris Scott
- [coldspring-dev] hair puller Joseph Lamoree

