<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Class Phalcon\\Mvc\\Router\\Annotations # Class **Phalcon\\Mvc\\Router\\Annotations** *extends* class [*Phalcon\\Mvc\\Router*](#) *implements*[*Phalcon\\Events\\EventsAwareInterface*](#), [*Phalcon\\Mvc\\RouterInterface*](#), `Phalcon\Di\InjectionAwareInterface` A router that reads routes annotations from classes/resources ``` <pre class="calibre14">``` <?php $di['router'] = function() { //Use the annotations router $router = new Annotations(false); //This will do the same as above but only if the handled uri starts with /robots $router->addResource('Robots', '/robots'); return $router; }; ``` ``` ### Constants *integer***URI\_SOURCE\_GET\_URL** *integer***URI\_SOURCE\_SERVER\_REQUEST\_URI** *integer***POSITION\_FIRST** *integer***POSITION\_LAST** ### Methods public **addResource** (*unknown* $handler, \[*unknown* $prefix\]) Adds a resource to the annotations handler A resource is a class that contains routing annotations public **addModuleResource** (*unknown* $module, *unknown* $handler, \[*unknown* $prefix\]) Adds a resource to the annotations handler A resource is a class that contains routing annotations The class is located in a module public **handle** (\[*unknown* $uri\]) Produce the routing parameters from the rewrite information public **processControllerAnnotation** (*unknown* $handler, *unknown* $annotation) Checks for annotations in the controller docblock public **processActionAnnotation** (*string* $module, *string* $namespaceName, *string* $controller, *string* $action, [*Phalcon\\Annotations\\Annotation*](#) $annotation) Checks for annotations in the public methods of the controller public **setControllerSuffix** (*unknown* $controllerSuffix) Changes the controller class suffix public **setActionSuffix** (*unknown* $actionSuffix) Changes the action method suffix public *array***getResources** () Return the registered resources public **\_\_construct** (\[*unknown* $defaultRoutes\]) inherited from Phalcon\\Mvc\\Router Phalcon\\Mvc\\Router constructor public **setDI** (*unknown* $dependencyInjector) inherited from Phalcon\\Mvc\\Router Sets the dependency injector public **getDI** () inherited from Phalcon\\Mvc\\Router Returns the internal dependency injector public **setEventsManager** (*unknown* $eventsManager) inherited from Phalcon\\Mvc\\Router Sets the events manager public **getEventsManager** () inherited from Phalcon\\Mvc\\Router Returns the internal event manager public **getRewriteUri** () inherited from Phalcon\\Mvc\\Router Get rewrite info. This info is read from $\_GET\[‘\_url'\]. This returns ‘/' if the rewrite information cannot be read public **setUriSource** (*unknown* $uriSource) inherited from Phalcon\\Mvc\\Router Sets the URI source. One of the URI\_SOURCE\_\* constants ``` <pre class="calibre14">``` <?php $router->setUriSource(Router::URI_SOURCE_SERVER_REQUEST_URI); ``` ``` public **removeExtraSlashes** (*unknown* $remove) inherited from Phalcon\\Mvc\\Router Set whether router must remove the extra slashes in the handled routes public **setDefaultNamespace** (*unknown* $namespaceName) inherited from Phalcon\\Mvc\\Router Sets the name of the default namespace public **setDefaultModule** (*unknown* $moduleName) inherited from Phalcon\\Mvc\\Router Sets the name of the default module public **setDefaultController** (*unknown* $controllerName) inherited from Phalcon\\Mvc\\Router Sets the default controller name public **setDefaultAction** (*unknown* $actionName) inherited from Phalcon\\Mvc\\Router Sets the default action name public **setDefaults** (*unknown* $defaults) inherited from Phalcon\\Mvc\\Router Sets an array of default paths. If a route is missing a path the router will use the defined here This method must not be used to set a 404 route ``` <pre class="calibre14">``` <?php $router->setDefaults(array( 'module' => 'common', 'action' => 'index' )); ``` ``` public **getDefaults** () inherited from Phalcon\\Mvc\\Router Returns an array of default parameters public **add** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $httpMethods\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router without any HTTP constraint ``` <pre class="calibre14">``` <?php use Phalcon\Mvc\Router; $router->add('/about', 'About::index'); $router->add('/about', 'About::index', ['GET', 'POST']); $router->add('/about', 'About::index', ['GET', 'POST'], Router::POSITION_FIRST); ``` ``` public **addGet** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router that only match if the HTTP method is GET public **addPost** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router that only match if the HTTP method is POST public **addPut** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router that only match if the HTTP method is PUT public **addPatch** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router that only match if the HTTP method is PATCH public **addDelete** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router that only match if the HTTP method is DELETE public **addOptions** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Add a route to the router that only match if the HTTP method is OPTIONS public **addHead** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $position\]) inherited from Phalcon\\Mvc\\Router Adds a route to the router that only match if the HTTP method is HEAD public **mount** (*unknown* $group) inherited from Phalcon\\Mvc\\Router Mounts a group of routes in the router public **notFound** (*unknown* $paths) inherited from Phalcon\\Mvc\\Router Set a group of paths to be returned when none of the defined routes are matched public **clear** () inherited from Phalcon\\Mvc\\Router Removes all the pre-defined routes public **getNamespaceName** () inherited from Phalcon\\Mvc\\Router Returns the processed namespace name public **getModuleName** () inherited from Phalcon\\Mvc\\Router Returns the processed module name public **getControllerName** () inherited from Phalcon\\Mvc\\Router Returns the processed controller name public **getActionName** () inherited from Phalcon\\Mvc\\Router Returns the processed action name public **getParams** () inherited from Phalcon\\Mvc\\Router Returns the processed parameters public **getMatchedRoute** () inherited from Phalcon\\Mvc\\Router Returns the route that matchs the handled URI public **getMatches** () inherited from Phalcon\\Mvc\\Router Returns the sub expressions in the regular expression matched public **wasMatched** () inherited from Phalcon\\Mvc\\Router Checks if the router macthes any of the defined routes public **getRoutes** () inherited from Phalcon\\Mvc\\Router Returns all the routes defined in the router public **getRouteById** (*unknown* $id) inherited from Phalcon\\Mvc\\Router Returns a route object by its id public **getRouteByName** (*unknown* $name) inherited from Phalcon\\Mvc\\Router Returns a route object by its name public **isExactControllerName** () inherited from Phalcon\\Mvc\\Router Returns whether controller name should not be mangled | - [索引](# "總目錄") - [下一頁](# "Class Phalcon\Mvc\Router\Exception") | - [上一頁](# "Class Phalcon\Mvc\Router") | - [API Indice](#) ?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看