In a typical php app using MVC pattern,every request will be led to index.php,which means when I type in
http://localhost/controller1/action1
it will make the first request to the php script,then,what if the html page generated from
http://localhost/controller1/action1
also contains
<img src="http://localhost/controller2/action2" >
,will this img tag make another request to the index.php automatically and replaces the src value with the result generated from
controller2/action2?
I've checked the requests made from the script and it did have two requests,but the value of src just did not change and remained as
<img src="http://localhost/controller2/action2" >
Ss my questions are: 1.Will the second request in the src propery make another request to index.php? 2.If the request will be made,why the value of src did not change to the result echoed from controller2/action2?