I am doing the tutorial and all is going well. But here is something that confuses me, not as in the steps, but the logic behind it.
During the Blog section of the tutorial, it is explained that
each single entry will get the url "blog.php?pg=x" with x a number; and if that ?pg=x postfix does not exist, it will fallback to "blog.php".
I totally get this. What I don't understand, why embed the blog_list.html page into that php, and then change codes in there, instead of creating blog_list.php, and then have it connected somehow? I understand you need to add a connection which might be totally unnecessary, but it's confusing to use html inside a php page, and then have some of the changes in the html, and some in the php (in the tutorial, the sidebar changes are done in the php, while everything else before were in the html).
Does anyone know what I mean here
During the Blog section of the tutorial, it is explained that
each single entry will get the url "blog.php?pg=x" with x a number; and if that ?pg=x postfix does not exist, it will fallback to "blog.php".
I totally get this. What I don't understand, why embed the blog_list.html page into that php, and then change codes in there, instead of creating blog_list.php, and then have it connected somehow? I understand you need to add a connection which might be totally unnecessary, but it's confusing to use html inside a php page, and then have some of the changes in the html, and some in the php (in the tutorial, the sidebar changes are done in the php, while everything else before were in the html).
Does anyone know what I mean here
