public function indexAction()
 {
     /* @var $request \Zend\Http\Request */
     $request = $this->getRequest();
     $p = new \Product\Model\Store();
     $p->setServiceLocator($this->getServiceLocator());
     $p->setOptions(['page' => $request->getQuery('page'), 'icpp' => $request->getQuery('icpp')]);
     $variables = $p->searchOptions();
     /* @var $baseStoreMapper \Product\Model\BaseStoreMapper */
     $baseStoreMapper = $this->getServiceLocator()->get('Product\\Model\\BaseStoreMapper');
     $paginator = $baseStoreMapper->search($p);
     $viewModel = new ViewModel();
     if ($request->getPost('template')) {
         $viewModel->setTemplate($request->getPost('template'));
         $viewModel->setTerminal($request->getPost('terminal', false));
     }
     $viewModel->setVariables(array('variableFilter' => $variables, 'paginator' => $paginator));
     return $viewModel;
 }