Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Attributes\Controller;
- class AddController extends AbstractActionController
- {
- public function addAction()
- {
- $request = $this->getRequest();
- if ($request->isPost()) {
- $this->_form->setData($request->getPost());
- if ($this->_form->isValid()) {
- try{
- $this->_Eav_attribute_service->save($this->_form->getData());
- }catch (\Exception $e){
- }
- }
- }
- return array('form' => $this->_form);
- }
- }
Add Comment
Please, Sign In to add comment