我想在 MVC 框架中对 index.php 有一个很好理解的描述......我曾在 Magento 和 Codeignitor 工作过......
在 Magento URL 的 index.php 中称为前端 Controller ,但在 codeignitor 中它是什么?
请清除 MVC 框架中 index.php 的概念?
最佳答案
索引是您的入口点,它会将您的 URL 分派(dispatch)/路由到相应的 Controller /操作。你不必在 index.php 中命名,你可以给它任何你想要的名字,只要你调用文件,它不会有问题。
关于model-view-controller - MVC 框架中 Index.php 的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10444775/