开发者

Zend Framework: whats the difference between / and # Rest API calls?

开发者 https://www.devze.com 2023-03-09 05:48 出处:网络
I have a site which runs under zend framework. Whats the difference between the following calls in terms of control开发者_Go百科ler actions: http://localhost/home/password and http://localhost/home#p

I have a site which runs under zend framework. Whats the difference between the following calls in terms of control开发者_Go百科ler actions: http://localhost/home/password and http://localhost/home#password? Both works, but the results are slightly different: one output includes some UI elements while another one doesnt.


You are wrong. they are not the same.

In http://localhost/home/password home is controller and password is action.

In http://localhost/home#password home is controller and index is action and #password is page bookmark which is not accessible through php (zend framework) at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消