Answer the question
In order to leave comments, you need to log in
How to process and write a new field to the database (Magento)?
I had no business with Magento (based on the question, I think it's clear).
Conventionally, there is a feedback module, in which the fields:
-text
-name It is
necessary to add the rating (rating) field - respectively, to the database and then display it.
The field is added to the template.
Further stupor.
As close as possible (with a record to the database) what I found in the controller, after processing the fields:
/* processing here */
$model->save();
And redirect back.
To create a table, in the config (in config.xml), as I understand it, there should be something like:
<entities>
<reviews>
<table>user_reviews</table>
</reviews>
</entities>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question