Custom table in magento not created after adding all code

Here is the code for my config.xml for my module. Take a look at the code and suggest me where I am wrong. I am new to magento and know little about the declarations used in the configuration file. Any help would be appreciated.

<?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> 
+5
source share
1 answer

You need to use the installer script, which consists of sql code.

You can link to the following link

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

This is a tutorial on creating a basic extension with a custom table.

+2
source

All Articles