Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function updateFieldAction()
- {
- $fieldId = (int) $this->getRequest()->getParam('id');
- $field = $this->getRequest()->getParam('field');
- if ($fieldId) {
- $model = Mage::getModel('modulename/model')->load($fieldId);
- $model->setField($field);
- $model->save();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement