getValue('web/default/admin')); $this->_parts = [ 'area' => isset($pathParts[0]) ? $pathParts[0] : '', 'module' => isset($pathParts[1]) ? $pathParts[1] : 'admin', 'controller' => isset($pathParts[2]) ? $pathParts[2] : 'index', 'action' => isset($pathParts[3]) ? $pathParts[3] : 'index', ]; } /** * Retrieve default path part by code * * @param string $code * @return string */ public function getPart($code) { return $this->_parts[$code] ?? null; } }