<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\\Route # Class **Phalcon\\Mvc\\Router\\Route** *implements*[*Phalcon\\Mvc\\Router\\RouteInterface*](#) This class represents every route added to the router ### Methods public **\_\_construct** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $httpMethods\]) Phalcon\\Mvc\\Router\\Route constructor public **compilePattern** (*unknown* $pattern) Replaces placeholders from pattern returning a valid PCRE regular expression public **via** (*unknown* $httpMethods) Set one or more HTTP methods that constraint the matching of the route ``` <pre class="calibre14">``` <?php $route->via('GET'); $route->via(array('GET', 'POST')); ``` ``` public **extractNamedParams** (*unknown* $pattern) Extracts parameters from a string public **reConfigure** (*unknown* $pattern, \[*unknown* $paths\]) Reconfigure the route adding a new pattern and a set of paths public static **getRoutePaths** (\[*unknown* $paths\]) Returns routePaths public **getName** () Returns the route's name public **setName** (*unknown* $name) Sets the route's name ``` <pre class="calibre14">``` <?php $router->add('/about', array( 'controller' => 'about' ))->setName('about'); ``` ``` public **beforeMatch** (*unknown* $callback) Sets a callback that is called if the route is matched. The developer can implement any arbitrary conditions here If the callback returns false the route is treated as not matched public **getBeforeMatch** () Returns the ‘before match' callback if any public **getRouteId** () Returns the route's id public **getPattern** () Returns the route's pattern public **getCompiledPattern** () Returns the route's compiled pattern public **getPaths** () Returns the paths public **getReversedPaths** () Returns the paths using positions as keys and names as values public **setHttpMethods** (*unknown* $httpMethods) Sets a set of HTTP methods that constraint the matching of the route (alias of via) ``` <pre class="calibre14">``` <?php $route->setHttpMethods('GET'); $route->setHttpMethods(array('GET', 'POST')); ``` ``` public **getHttpMethods** () Returns the HTTP methods that constraint matching the route public **setHostname** (*unknown* $hostname) Sets a hostname restriction to the route ``` <pre class="calibre14">``` <?php $route->setHostname('localhost'); ``` ``` public **getHostname** () Returns the hostname restriction if any public **setGroup** (*unknown* $group) Sets the group associated with the route public **getGroup** () Returns the group associated with the route public **convert** (*unknown* $name, *unknown* $converter) Adds a converter to perform an additional transformation for certain parameter public **getConverters** () Returns the router converter public static **reset** () Resets the internal route id generator | - [索引](# "總目錄") - [下一頁](# "Class Phalcon\Mvc\Url") | - [上一頁](# "Class Phalcon\Mvc\Router\Group") | - [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>

                              哎呀哎呀视频在线观看