private function InitModule(array $idParts)
    {
        if (count($idParts) < 1 || count($idParts) > 2)
        {
            //TODO: Message
            Response::Redirect(BackendRouter::ModuleUrl(new TemplateList()));
        }
        $this->module = ClassFinder::CreateFrontendModule($idParts[0]);
        if (!$this->module instanceof FrontendModule || !$this->module->AllowCustomTemplates())
        {
            //TODO: Message
            Response::Redirect(BackendRouter::ModuleUrl(new TemplateList()));
        }
    }
private function InitModule(array $idParts)
    {
        if (count($idParts) < 1 || count($idParts) > 2)
        {
            //TODO: Message
            Response::Redirect(BackendRouter::ModuleUrl(new TemplateList()));
        }
        $this->module = ClassFinder::CreateFrontendModule($idParts[0]);
        if (!$this->module instanceof FrontendModule || !$this->module->AllowCustomTemplates())
        {
            //TODO: Message
            Response::Redirect(BackendRouter::ModuleUrl(new TemplateList()));
        }
    }
private function InitModule ( array $ idParts ) { if ( count ( $ idParts ) < 1 || count ( $ idParts ) > 2 ) { //TODO: Message Response :: Redirect ( BackendRouter :: ModuleUrl ( new TemplateList ( ) ) ) ; } $ this -> module = ClassFinder :: CreateFrontendModule ( $ idParts [ 0 ] ) ; if ( ! $ this -> module instanceof FrontendModule || ! $ this -> module -> AllowCustomTemplates ( ) ) { //TODO: Message Response :: Redirect ( BackendRouter :: ModuleUrl ( new TemplateList ( ) ) ) ; } }
Initializes the bundle and module names
@param array $idParts
Initializes the bundle and module names