1

I have this chunk of code:

<?xml version="1.0"?>
<config>
  <api>
    <resources>
      <mobile_api translate="title" module="mobile">
        <title>Milyuncarros Mobile API</title>
        <acl>mobile/api</acl>
        <model>mobile/api</model>

Question: What's the purpose of specifying module="mobile" and what values are allowed there? (in my case the value is "mobile"; i'm not asking about the particular value but the attribute itself)

I have this API currently working, but I did it by repetition (and adaptation) from tutorials - don't fully understand all the concepts and settings. I notice that attribute exists for many tags (e.g. faults tag and also acl/resources children tags).

1

This is related to the module helper to be used when translating. XML equivalent to Mage::helper('mobile')->__($label)

  • So the only use of module attribute is for translation purposes? – Luis Masuelli Jul 16 '14 at 15:02
  • Yes, it seems to be the case. – mbalparda Jul 16 '14 at 15:07

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.