我有一个在zend框架下运行的网站。 在控制器操作方面,以下调用之间的区别是什么:http://localhost/home/password和http://localhost/home#password?两者都有效,但结果略有不同:一个输出包含一些UI元素,而另一个不包含。
答案 0 :(得分:2)
你错了。他们不一样。
在http://localhost/home/password home
是控制器,password
是行动。
在http://localhost/home#password home
是控制器,index
是操作,#password
是页面书签,根本无法通过php(zend框架)访问。