Example #1
0
 /**
  * Returns the root URL of the project. If addManager = false, don't append 'manager/' if we are calling this function from a manager route.
  * @param  boolean $addManager
  * @return string
  */
 public static function root($addManager = true)
 {
     $root = Request::rootURL();
     if ($addManager && URI::isManager()) {
         $root .= "manager/";
     }
     return $root;
 }