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 6576097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:28:08+00:00 2026-05-25T15:28:08+00:00

I am developing a somewhat complex, mostly AJAX application using symfony 1.4. It would

  • 0

I am developing a somewhat complex, mostly AJAX application using symfony 1.4. It would be very helpful for me to use some custom properties for my modules, which I defined in the module.yml configuration files, for example:

all:
  first_property: value1
  second_property: value2

etc.

This properties would be used mainly for formatting views generated by javascript, using JSON values returned from my modules. For example – in my main module (used to render the base view) controller I wanted to use something like that:

// In frontend/modules/main
$property sfConfig::get('mod_somemodule_someproperty');

It won’t work because by default properties of a module are not accessible outside of the module by the sfConfig::get() method.

My question is:

Is it possible to somehow access these properties?

If not – I would be really grateful if somebody suggested a different way in which I could specify some recurring attributes for my modules and the access them from an outside controller.

Thanks.

  • 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-25T15:28:08+00:00Added an answer on May 25, 2026 at 3:28 pm

    I guess you’re familiar with the app.yml config? Which is used to store configuration settings through the whole application, not just the selected module. This is the place to store more generic settings…

    But, that said. You could just open the module.yml of your choice with the sfYaml class. Something like this (pseudo code)

    $moduleName = 'module';
    $path = sfConfig::get('sf_app_dir').'/modules/'.$moduleName.'/config/module.yml';
    $moduleConfig = sfYaml::load($path);
    $property = $moduleConfig['all']['first_property'];
    

    Optionally, you could merge the items all key with the selected environment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a monitoring application for some in-house hardware using net-snmp. I have
After becoming somewhat estranged open source, and spending some years developing web applications in
I've found this a somewhat dated tutorial for developing a Rails application on Leopard
I´m developing a very memory-consuming app and want to use the largeHeap-Tag, which should
I'm developing a commercial Windows 7 desktop application (somewhat shrink wrap, but not quite).
Our company is developing a new application, which has a somewhat large business data
I'm currently developing a C-module for a Java-application that needs some performance improvements (see
Developing websites are time-consuming. To improve productivity, I would code a prototype to show
Developing a .NET WinForms application: how can I check if the window is in
Developing a heavily XML-based Java-application, I recently encountered an interesting problem on Ubuntu Linux.

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.