sathyashrayan

AddController.php

Mar 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2. namespace MarketPlace\Attributes\Controller;
  3.  
  4. use Zend\Mvc\Controller\AbstractActionController;
  5. use Zend\View\Model\ViewModel;
  6.  
  7. class AddController extends AbstractActionController
  8. {
  9.     public function addAction()
  10.     {
  11.         $sl = $this->getServiceLocator();
  12.         $form = $sl->get('FormElementManager')->get('\MarketPlace\Attributes\Form\AttributesForm');
  13.         return array('form' => $form);
  14.     }
  15.        
  16. }
Add Comment
Please, Sign In to add comment