2

In symfony1, in yaml file how can i set an empty array?

# app.yml
all:
    test:
        example: // empty array here

so when i

<?php echo sfConfig::get('app_test_example');?> 

it returns array();

1 Answer 1

5

try

# app.yml
all:
    test:
        example: []
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.