title: Website design strategy: Change content or load different HTMLs
body: <p>So this is kind of my first attempt at web design per se so it might be a newbie-ish question. Just to give a little background... I'm using the all time classic HTML + JS + CSS combo and Yii (PHP) as a backend with a MySQL database. I can't really tell what the site is about but the user will definitely interact with the backend and run some queries on the DB and stuff.</p>
  
  <p>Right now my website is composed of 5 HTML files, each one of them has a common layout:</p>
  
  <ul>
  <li>Header or menu with logo and user info</li>
  <li>"Sub-Header" with a general info image and maybe some specific stuff</li>
  <li>Content specific to that HTML file</li>
  <li>Footer</li>
  </ul>
  
  <p>Right now I find kinda annoying that each time I redirect the user to a different place of my site I have to check again if he's logged in, I make some use of cookies for that too, etc, etc.</p>
  
  <p>I was thinking of moving my site to be a single page or template if you will and just append the (body)content of each of those files to the body of my master-page. That sounds pretty good at first thought, but are there any downsides to this or is this just how things should be done? </p>
  
  <p>I've done web applications before using frameworks like Sencha and stuff and they all seem to work this way, but is this the way to go for this particular case?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Also, what is the correct way to implement the single-page scenario? </p>
  
  <ul>
  <li>Get all the code in one HTML file and hide the stuff I don't want to show</li>
  <li>Remove from the view the stuff I want to hide and append the new stuff from some other HTML file.</li>
  </ul>