<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\\Group # Class **Phalcon\\Mvc\\Router\\Group** *implements*[*Phalcon\\Mvc\\Router\\GroupInterface*](#) Helper class to create a group of routes with common attributes ``` <pre class="calibre14">``` <?php $router = new \Phalcon\Mvc\Router(); //Create a group with a common module and controller $blog = new Group(array( 'module' => 'blog', 'controller' => 'index' )); //All the routes start with /blog $blog->setPrefix('/blog'); //Add a route to the group $blog->add('/save', array( 'action' => 'save' )); //Add another route to the group $blog->add('/edit/{id}', array( 'action' => 'edit' )); //This route maps to a controller different than the default $blog->add('/blog', array( 'controller' => 'about', 'action' => 'index' )); //Add the group to the router $router->mount($blog); ``` ``` ### Methods public **\_\_construct** (\[*unknown* $paths\]) Phalcon\\Mvc\\Router\\Group constructor public **setHostname** (*unknown* $hostname) Set a hostname restriction for all the routes in the group public **getHostname** () Returns the hostname restriction public **setPrefix** (*unknown* $prefix) Set a common uri prefix for all the routes in this group public **getPrefix** () Returns the common prefix for all the routes public **beforeMatch** (*unknown* $beforeMatch) 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 **setPaths** (*unknown* $paths) Set common paths for all the routes in the group public **getPaths** () Returns the common paths defined for this group public **getRoutes** () Returns the routes added to the group public **add** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $httpMethods\]) Adds a route to the router on any HTTP method ``` <pre class="calibre14">``` <?php router->add('/about', 'About::index'); ``` ``` public [*Phalcon\\Mvc\\Router\\Route*](#)**addGet** (*string* $pattern, \[*string/array* $paths\]) Adds a route to the router that only match if the HTTP method is GET public [*Phalcon\\Mvc\\Router\\Route*](#)**addPost** (*string* $pattern, \[*string/array* $paths\]) Adds a route to the router that only match if the HTTP method is POST public [*Phalcon\\Mvc\\Router\\Route*](#)**addPut** (*string* $pattern, \[*string/array* $paths\]) Adds a route to the router that only match if the HTTP method is PUT public [*Phalcon\\Mvc\\Router\\Route*](#)**addPatch** (*string* $pattern, \[*string/array* $paths\]) Adds a route to the router that only match if the HTTP method is PATCH public [*Phalcon\\Mvc\\Router\\Route*](#)**addDelete** (*string* $pattern, \[*string/array* $paths\]) Adds a route to the router that only match if the HTTP method is DELETE public [*Phalcon\\Mvc\\Router\\Route*](#)**addOptions** (*string* $pattern, \[*string/array* $paths\]) Add a route to the router that only match if the HTTP method is OPTIONS public [*Phalcon\\Mvc\\Router\\Route*](#)**addHead** (*string* $pattern, \[*string/array* $paths\]) Adds a route to the router that only match if the HTTP method is HEAD public **clear** () Removes all the pre-defined routes protected **\_addRoute** (*unknown* $pattern, \[*unknown* $paths\], \[*unknown* $httpMethods\]) Adds a route applying the common attributes | - [索引](# "總目錄") - [下一頁](# "Class Phalcon\Mvc\Router\Route") | - [上一頁](# "Class Phalcon\Mvc\Router\Exception") | - [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>

                              哎呀哎呀视频在线观看