Web应用程序中调用的这些路由样式是什么? [英] What are these routing styles called in a web application?

查看:141
本文介绍了Web应用程序中调用的这些路由样式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您怎么称呼将一个URL直接映射到文件的路由?

示例:

http://localhost/directory/file.php => /var/www/apache/htdocs/directory/file.php

https://github.com/nikic/FastRoute ?

What do you call routing like one on https://github.com/nikic/FastRoute?

示例:

http://localhost/directory/file =>请求实际上转到单个index.php文件,该文件随后加载路由文件或表并加载路由表中定义的适当的类.

http://localhost/directory/file => request actually goes to a single index.php file, which then loads routing files or tables and loads appropriate class as defined in the routing table.

推荐答案

您怎么称呼将一个URL直接映射到文件的路由?

What do you call routing that maps one URL directly to a file?

我称没有路由.还是直接路由?我从未听说过有人为此专门使用过一个术语.

I would call that no routing. Or maybe direct routing? I've never heard anybody use a term specifically for it.

https://github.com/nikic/FastRoute 上,您如何称呼路由? ?

What do you call routing like one on https://github.com/nikic/FastRoute?

(通常)是前端控制器模式.

这篇关于Web应用程序中调用的这些路由样式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆