title: Designing installation process
body: <p>I want to create a CMS, installation and configuration is first. I want to do a couple of stages here:</p>
  
  <ol>
  <li>Display page with server requirements</li>
  <li>Display database configuration "window"</li>
  <li>After clicking submit, display some other configuration window</li>
  </ol>
  
  <p>etc. until it is finished.</p>
  
  <hr>
  
  <p>My questions are strictly design issued:</p>
  
  <ol>
  <li><p>How do I check if user already came through the installation process? I could create config.php file when it's done and check for its existence - is this a good solution? I think <code>file_exists()</code> would slow the application down a bit.</p></li>
  <li><p>When I click "submit" in the stages at the top of this post, I'd need to redirect the request to the <code>config</code> class method - so the routing would be needed. Is this a good solution?</p></li>
  <li><p>And finally, when I click the submit and I am in the class's method, doing something, I need to move user to the next window. How should I do this? Requiring html file from inside this method? Redirecting to the different method with the same file including?</p></li>
  </ol>