library/View.php
//logged - boolean to load the header for a member area
boolean to load the header for a member area
boolean to load the header for a member area
public function create($name, $includeHeaderFooter, $logged = false)
  {
    if($includeHeaderFooter == true && $logged == false)
    {
      require("views/header.php");
      require("views/".$name.".php");
      require("views/footer.php");
    }
    elseif ($includeHeaderFooter == true && $logged == true)
    {
      require("views/headerlogged.php");
      require("views/".$name.".php");
      require("views/footer.php");
    }
    else
    {
      require("views/".$name.".php");
    }
  }
public function create ( $ name , $ includeHeaderFooter , $ logged = false ) { if ( $ includeHeaderFooter == true && $ logged == false ) { require ( " views/header.php " ) ; require ( " views/ " . $ name . " .php " ) ; require ( " views/footer.php " ) ; } elseif ( $ includeHeaderFooter == true && $ logged == true ) { require ( " views/headerlogged.php " ) ; require ( " views/ " . $ name . " .php " ) ; require ( " views/footer.php " ) ; } else { require ( " views/ " . $ name . " .php " ) ; } }
logged - boolean to load the header for a member area
logged - boolean to load the header for a member area