Development

#10030 (settings.yml does not follow configuration cascade mechanism at the module level)

You must first sign up to be able to contribute.

Ticket #10030 (new defect)

Opened 1 year ago

Last modified 1 year ago

settings.yml does not follow configuration cascade mechanism at the module level

Reported by: maalls Assigned to: fabien
Priority: minor Milestone:
Component: configuration Version: 1.4.10
Keywords: settings cascade Cc: maalls
Qualification: Unreviewed

Description

How to reproduce:

  • create a helper and put in the project's lib: project/lib/helper/MyHelper.php that contains a function my_very_special_function()
    function my_very_special_function() {
      echo 'ok';
    }
    
  • create a module with a settings.yml that include the helper: mymodule/config/settings.yml
    all:
      .settings:
        standard_helpers: [My]
    
    

  • create a template that calls my_very_special_function()
  • clear cache just in case and display it in dev mode.

Results: seing an error message: Fatal error: Call to undefined function my_very_special_function() in...

Expected Results: seing 'ok'

Change History

05/02/12 08:22:00 changed by maalls

  • cc set to maalls.