title: Wordpress: for 100 pages site, use 100 page templates or 1 with include functions?
body: <p>I'm now using Different page templates for all pages which I create in my Wordpress. I'm using WordPress for Intranet Portal for a company. 
  For all pages, which I build, I need different php code.</p>
  
  <p>What is the correct way for 100 pages site? Create for all pages their own page template, and put it to themes/.../page-templates or create one page with:</p>
  
  <pre><code>&lt;?php 
  switch($current_page_name) {
     case "about-us";
  include(site_url('/pages/about-us.php'));
     break;
     case "contact-form";
  include(site_url('/pages/contact-form.php'));
     break;
  }
  ?&gt;
  </code></pre>
  
  <p>But how can I get $current_page_name variable? for example I have page:
  <a href="http://192.168.210.140/sales-funnel/todolist/" rel="nofollow">http://192.168.210.140/sales-funnel/todolist/</a>
  As i think, there need to be:</p>
  
  <pre><code>case "sales-funnel/todolist/";
  </code></pre>
  
  <p>Is it correct, to create <strong>themes\twentyten\page-templates\one-column.php</strong>:</p>
  
  <pre><code>&lt;?php
  /**
   * Template Name: Main template one-column
   */
   add_action('template_redirect','my_redirect');
  
          function my_redirect(){
              get_header();
              echo '
              &lt;div id="container" class="one-column"&gt;
              &lt;div id="content" role="main"&gt;  
              ';
              global $wp; //global $wp object it will return us request
              global $wpdb;
              echo $wp-&gt;request;
              switch($wp-&gt;request) {
  
                   case "sales-funnel/todolist":
                   status_header( 200 );  
                   include (TEMPLATEPATH . '/pages/sf/todolist.php');
                   break;
                   case "sales-funnel/add-deal":
                   status_header( 200 );  
                   include (TEMPLATEPATH . '/pages/sf/add-deal.php');
                   break;
              }
              echo '
              &lt;/div&gt;&lt;!-- #content --&gt;
              &lt;/div&gt;&lt;!-- #container --&gt;
              ';
              get_footer();
                  exit;
          }
          my_redirect()
  ?&gt;
  </code></pre>
  
  <p>And use it for example for 50 pages, simply add a case statement to this file?</p>