Answer the question
In order to leave comments, you need to log in
Why doesn't the Edit Action in the Cutom module load data from the database?
Edit Action in the Cutom module does not load data from the database, adding to the database works.
Form.php https://pastebin.com/8TJ54KSi
StoreController.php https://pastebin.com/utZ0ydHR
Edit.php https://pastebin.com/WHTCQ03c
Grid.php https://pastebin.com/MrxfYpTc
Answer the question
In order to leave comments, you need to log in
Where are you expecting the result?
Is it added to the database, displayed on the grid, when editing a record, the already set values are not loaded?
Check the content of the model in the class Offline_Store_Block_Adminhtml_Store_Edit_Form on line 18 $model = Mage::registry('store_block');
If there is no data in it, look at the edit method in the controller, what data is overwritten on the 8th line:
Mage::registry('store_block')->setData($blockObject);
What is contained in $blockObject
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question