4

I am trying to get all the modules names inside the particular Namespace

5

you can get modules with below code

$modules = Mage::getConfig()->getNode('modules')->children();

        $options = array();

        $options[] = array(
            'label' => Mage::helper('sales')->__('-- None --'),
            'value' => ''
        );




        foreach($modules as $key => $value):

        if (strpos($key, '//yournamespacehere') !== FALSE):



            $options[] = array(
               'label' => $key,
               'value' => $key
            );

            endif;

        endforeach;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.