Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to I make a Magento module that can CRUD a custom table, inside the admin panel?

Tags:

magento

I've been following a tutorial, but it doesn't work on the latest version Magento 1.7, and nobody here could help me with it :( so I've decided to ask a new question from scratch with no code in it.

I already know how to make Magento modules (to some extent), as I made a working one for the frontend, but I'll need one for the backend admin panel, where I can create, edit and delete a custom table inside the database.

From hereonwards, assume that I have configured config.xml and got a blank admin page to load, (or you could not), but it would be easier to just say I just have a blank admin page, and I need the rest of the code to fill out the content and empty logic.

like image 208
desbest Avatar asked Aug 27 '12 08:08

desbest


1 Answers

The best example of a complete CRUD implementation including setup script to create the table, model classes, and a complete admin form to view/edit/delete and export the records is that provided by moduleCreator. moduleCreator will create your module for you then populate it with the complete back end and front end (if required). You can get moduleCreator from Magento Connect or an updated version from GitHub.

like image 112
Jim OHalloran Avatar answered Nov 07 '22 05:11

Jim OHalloran