construct() protected method

Constructor
protected construct ( ) : Zend\Http\Response | null
return Zend\Http\Response | null
Example #1
0
 /**
  * Constructor initiliaze module menu
  *
  * @return \Zend\Http\Response|null
  */
 protected function construct()
 {
     $result = parent::construct();
     if (!empty($result)) {
         return $result;
     }
     $routeParams = $this->layout()->getVariable('routeParams');
     $routeParams['module'] = 'gcmodule';
     $this->layout()->setVariable('routeParams', $routeParams);
 }