public static function addRoute($route, $controller, $root)
    {
        $file = $root.'app/http/Routes.php';
        $content = "\n\ntarget('$route','$controller');";

        file_put_contents($file, $content, FILE_APPEND | LOCK_EX);

        return true;
    }
public static function addRoute($route, $controller, $root)
    {
        $file = $root.'app/http/Routes.php';
        $content = "\n\ntarget('$route','$controller');";

        file_put_contents($file, $content, FILE_APPEND | LOCK_EX);

        return true;
    }
public static function addRoute ( $ route , $ controller , $ root ) { $ file = $ root . 'app/http/Routes.php' ; $ content = "\n\ntarget('$route','$controller');" ; file_put_contents ( $ file , $ content , FILE_APPEND | LOCK_EX ) ; return true ; }
Add controller route to routes file.

@param string $route
@param string $controller

@return bool
Add controller route to routes file .