Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6596809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:07:31+00:00 2026-05-25T18:07:31+00:00

Model Glue 3 introduced bean injection, which allows you to do this in a

  • 0

Model Glue 3 introduced bean injection, which allows you to do this in a controller to access it:

beans.component.function();

However, the beans scope is only available for a controller. How would I access a bean outside of a controller, for example in Application.cfc or a helper UDF? I have a SimpleConfig bean that I’d like to access some config info for.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:07:32+00:00Added an answer on May 25, 2026 at 6:07 pm

    It’s going to depend on your bean factory — most likely ColdSpring. If your ColdSpring instance is saved in Application.beanFactory (I think this is the default, it’s been some time since I last used ModelGlue), then you would do the following:

    variables.config = application.beanFactory.getBean("SimpleConfig");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Model Item belongs_to User . In my controller I have code like this: @items
My model is like this class Foo(models.Model): user = models.ForeignKey(User) class Meta: abstract =
So..I intend to use a Model View Presenter(the passive mode, in which the UI
Model: I have a model in which one Installation can contain multiple Computer Systems.
Model : <?php class Blogm extends CI_Model{ function __construct() { // Call the Model
'MODEL' has a relation with model MODEL.IN.APP, which has either not been installed or
I asked this question to get some opinions on the subject of glue code.
I'm trying to access related model info in Yii from a view and need
Model #1 - This model sits in a database on our Dev Server. Model
Model.objects.filter(pk__in=[list of ids]) and Model.objects.filter(pk__in=[1,2,3]) How do I show this data in a template?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.