public function indexAction($category, $package, $page) {

        $wikiViews = self::getWikiViews();

        $wikiView = WikiView::find($wikiViews, $category, $package, $page);
        if (null === $wikiView) {

            // Set a default wiki view.
            $wikiView = $wikiViews[0];

            $this->notifyDanger("The requested page was not found");
            $this->notifyInfo("You have been redirected to homepage");
        }

        return $this->render($wikiView->getView(), [
            "wikiViews"                 => $wikiViews,
            "wikiView"                  => $wikiView,
            "syntaxHighlighterConfig"   => $this->getSyntaxHighlighterConfig(),
            "syntaxHighlighterDefaults" => $this->getSyntaxHighlighterDefaults(),
            "user"                      => $this->getSampleUser(),
            "userRoleColors"            => $this->getSampleUserRoleColors(),
            "userRoleTranslations"      => $this->getSampleUserRoleTranslations(),
        ]);
    }
public function indexAction($category, $package, $page) {

        $wikiViews = self::getWikiViews();

        $wikiView = WikiView::find($wikiViews, $category, $package, $page);
        if (null === $wikiView) {

            // Set a default wiki view.
            $wikiView = $wikiViews[0];

            $this->notifyDanger("The requested page was not found");
            $this->notifyInfo("You have been redirected to homepage");
        }

        return $this->render($wikiView->getView(), [
            "wikiViews"                 => $wikiViews,
            "wikiView"                  => $wikiView,
            "syntaxHighlighterConfig"   => $this->getSyntaxHighlighterConfig(),
            "syntaxHighlighterDefaults" => $this->getSyntaxHighlighterDefaults(),
            "user"                      => $this->getSampleUser(),
            "userRoleColors"            => $this->getSampleUserRoleColors(),
            "userRoleTranslations"      => $this->getSampleUserRoleTranslations(),
        ]);
    }
public function indexAction ( $ category , $ package , $ page ) { $ wikiViews = self :: getWikiViews ( ) ; $ wikiView = WikiView :: find ( $ wikiViews , $ category , $ package , $ page ) ; if ( null === $ wikiView ) { // Set a default wiki view. $ wikiView = $ wikiViews [ 0 ] ; $ this -> notifyDanger ( "The requested page was not found" ) ; $ this -> notifyInfo ( "You have been redirected to homepage" ) ; } return $ this -> render ( $ wikiView -> getView ( ) , [ "wikiViews" => $ wikiViews , "wikiView" => $ wikiView , "syntaxHighlighterConfig" => $ this -> getSyntaxHighlighterConfig ( ) , "syntaxHighlighterDefaults" => $ this -> getSyntaxHighlighterDefaults ( ) , "user" => $ this -> getSampleUser ( ) , "userRoleColors" => $ this -> getSampleUserRoleColors ( ) , "userRoleTranslations" => $ this -> getSampleUserRoleTranslations ( ) , ] ) ; }
Displays a wiki page.

@param string $category The category.
@param string $package The parent.
@param string $page The page.
@return Response Returns the response.
Displays a wiki page .