title: Should I remove static function from my code?
body: <p>My code is located here: <a href="https://github.com/maniator/SmallFry/tree/f957f3609c1f108c8cd3b79e4d47a57740e85b42" rel="nofollow noreferrer">https://github.com/maniator/SmallFry</a></p>
  
  <p>Should I make it so that that the <code>App</code> class does not have to use static functions but at the same time be able to set and set variables for the app from anywhere?</p>
  
  <p>Or should I keep it how it is now with <code>App::get</code> and <code>App::set</code> methods?</p>
  
  <p>What are the advantages and disadvantages of both?<br>
  How would I accomplish that 1st task if I was to undertake it?</p>
  
  <p><a href="https://codereview.stackexchange.com/questions/5039/small-php-library-critique">Related Question</a></p>
  
  <p>Sample code:</p>
  
  <pre><code>//DEFAULT TEMPLATE
  App::set('APP_NAME', 'SmallVC');
  //END DEFAULT TEMPLAT
  //
  //DEFAULT TEMPLATE
  App::set('DEFAULT_TEMPLATE', 'default');
  //END DEFAULT TEMPLATE
  
  //DEFAULT TITLE
  App::set('DEFAULT_TITLE', 'Small-VC');
  //END DEFAULT TITLE
  
  //LOGIN SEED
  App::set('LOGIN_SEED', "lijfg98u5;jfd7hyf");
  //END LOGIN SEED
  
  App::set('DEFAULT_CONTROLLER', 'AppController');
  </code></pre>
  
  <hr>
  
  <pre><code>       if(App::get('view')){
              $template_file = $cwd.'/../view/'.App::get('view').'/'.App::get('method').'.stp';
              if(is_file($template_file)){
                  include $template_file;
              }
              else {
                  include $cwd.'/../view/missingview.stp'; //no such view error
              }
          }
          else {
              App::set('template', 'blank');
              include $cwd.'/../view/missingfunction.stp'; //no such function error
          }
  </code></pre>