Example #1
0
 /**
  * Marks the application as being in a subdirectory. This affects how routes are matched.
  *
  * For example, if you set "/projects/one" as your subdirectory, the router will assume that all routes begin with
  * that value. A route for "/test.html" will then match against requests for "/projects/one/test.html".
  *
  * NB: You should not use a trailing slash in your subdirectory names.
  *
  * @param string $subdirectory
  * @return $this
  */
 public function setSubdirectory($subdirectory)
 {
     $this->bootstrapRouter();
     $this->router->setSubdirectory($subdirectory);
     return $this;
 }