2015-07-27 9 views
5

जोड़ने के बाद नहीं बनाया गया है मेरे मॉड्यूल के लिए मेरी config.xml फ़ाइल का कोड यहां दिया गया है। कोड पर नज़र डालें और मुझे बताएं कि मैं कहां गलत हूं। मैं Magento के लिए नया हूँ और कॉन्फ़िगरेशन फ़ाइल में उपयोग की घोषणाओं के बारे में ज्यादा नहीं जानता। किसी भी तरह की सहायता को आभार समझेंगे।Magento में कस्टम टेबल सभी कोड

<?xml version="1.0"?> 
<config> 
    <global> 
     <models> 
      <xyz_xyzshipping> 
       <class>Xyz_Xyzshipping_Model</class> 
       <resourceModel>xyz_xyzshipping_resource</resourceModel> 
      </xyz_xyzshipping> 
      <xyz_xyzshipping_resource> 
       <class>Xyz_xyzshipping_Model_Resource</class> 
       <entities> 
        <custom> 
         <table>xyz_xyzshipping_custom</table> 
        </custom> 
       </entities> 
      </xyz_xyzshipping_resource>    
     </models> 
     <resources> 
       <xyz_xyzshipping_setup> 
         <setup> 
           <module>Xyz_Xyzshipping</module> 
         </setup>         
       </xyz_xyzshipping_setup> 
     </resources> 
     <blocks> 
       <xyz_xyzshipping> 
         <class>Xyz_Xyzshipping_Block</class> 
       </xyz_xyzshipping> 
     </blocks> 
     <helpers> 
      <xyz_xyzshipping> 
       <class>Xyz_Xyzshipping_Helper</class> 
      </xyz_xyzshipping> 
     </helpers> 

    </global> 


    <default> 
     <carriers> 
      <xyz_xyzshipping> 
       <active>1</active> 
       <sort_order>10</sort_order> 
       <model>xyz_xyzshipping/carrier</model> 
       <title>Xyz Shipping</title> 
       <sort_order>10</sort_order> 

      </xyz_xyzshipping> 
     </carriers> 
    </default> 
</config> 
+0

अपना मॉडल जोड़ें और फ़ाइल कोड स्थापित करें –

उत्तर

2

आपको इंस्टॉलर स्क्रिप्ट का उपयोग करने की आवश्यकता है जिसमें SQL कोड शामिल है।

आप लिंक

http://www.amitbera.com/create-an-magento-extension-with-custom-database-table/

इस कस्टम तालिका के साथ बुनियादी विस्तार बनाने के लिए ट्यूटोरियल है निम्नलिखित उल्लेख कर सकते हैं।

+0

इस लिंक के लिए धन्यवाद – Mani

संबंधित मुद्दे