Once again, I believe what you need is to refactor these methods into an
object that ISN'T a controller. Stick it in your model and then you can use
ColdSpring and the beans attribute of model glue to have that model object
available in your controller.

However, that wasn't the question you asked. So let's answer that question.

But how can I extend a controller? It is already extending

"ModelGlue.gesture.controller.Controller".


To do this correctly, you must preserve the inheritance chain. The chain for
ANY ColdFusion component is *WEB*-*INF*.cftags.*component. *(Though you
don't have to specify this in any of your CFCs since it is implied if the
CFC does not explicitly extend another object. )
*
*
The chain for a Model Glue controller is: *WEB*-*INF*.cftags.*component. ->
**ModelGlue.gesture.controller.Controller*

So, at a minimum, your new base controller  MarcsBaseController must extend
*ModelGlue.gesture.controller.Controller.  *

Then your Controllers in model glue will extend MarcsBaseController which
would preserve the chain *WEB*-*INF*.cftags.*component. ->
**ModelGlue.gesture.controller.Controller
-> MarcsBaseController*




DW







On Tue, Jan 18, 2011 at 11:10 AM, marc <[email protected]> wrote:

> Ok, that makes sense.
>
> But how can I extend a controller? It is already extending
> "ModelGlue.gesture.controller.Controller".
>
> Marc
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>



-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to