php Zend / MVC without mod_rewrite

前端 未结 5 1568
攒了一身酷
攒了一身酷 2021-01-22 08:19

I\'ve seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but

5条回答
  •  长发绾君心
    2021-01-22 09:08

    Drupal's rewrite rules translate

    http://example.com/path/goes/here

    into

    http://example.com/index.php?q=path/goes/here

    ...and has logic to decide which flavor of URLs to generate. If you can live with ugly URLs, this would let you keep all the logic of a single front controller in place w/o relying on URL rewriting.

提交回复
热议问题