0

I have a drop down list, which is generated by <?php echo $this->getValuesHtml(); ?>. Now I would like to store those values in an array. How can I do that ??

3
  • Please put more details
    – Amit Bera
    Commented Apr 5, 2016 at 15:31
  • I am new in Magento. I am working in select.phtml file. I got that code there. That line is printing a drop down list. Now I would like to store those values in an array.
    – abu abu
    Commented Apr 5, 2016 at 15:34
  • There is not enough information to help you with. Please add more details. My good guess is you need to add your own function ( similar to getValuesHtml ) that return you the array in stead of markup.
    – Kurdt94
    Commented Apr 5, 2016 at 15:53

0

Your Answer

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

Browse other questions tagged or ask your own question.