dongyu2300 2018-12-21 06:09
浏览 58
已采纳

如何进行URL路径(?)和.php vs .html

".com/watch?v=M0IDGz0QKDw" I'm a beginner and I wanna know how to do this. Can someone point me out onto where I can learn this url pathing?

And also if .php is way better than .html because php is connected to the database then what is this ".com/messages" weren't it supposed to be ".com/messages.php" note that messages gets all messages to the database.

  • 写回答

2条回答 默认 最新

  • dongyi0210 2018-12-21 06:17
    关注

    First -> ".com/watch?v=M0IDGz0QKDw"

    it is that there is v means some variable with unique number. And watch means in MVC architecture we have route.config file there we will configure the watch.php file.So the routing URL is like that.

    Second : Yes always better to use in MVC architecture .

    So try to learn MVC architecture by some frameworks like laravel, Codeigniter etc.it may help you out.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发