A
A
Anton Titov2018-02-08 22:29:44
Magento
Anton Titov, 2018-02-08 22:29:44

How to parse parameters array in Magento config.php?

I have in config.php

<handlers>
    <handler>SomeHandler</handler>
    <handler>SecondHandler</handler>
</handlers>

How can I parse this case into an array if Mage::getConfig() overwrites the same nodes (tags), but I don’t want to write crutches?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CodeKeeper, 2018-02-11
@CodeKeeper

Why can't you make unique keys?
for example

<handlers>
    <{handler1_alias}>SomeHandler</{handler1_alias}>
    <{handler2_alias}>SecondHandler</{handler2_alias}>
</handlers>

O
Oleg Batishchev, 2018-02-26
@z0rg

Why do you have xml in php file?))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question