implemented buildURL() function (and fixed redirecting on https page)

added comments block (file description) in each PHP file
This commit is contained in:
pioder committed 2015-02-15 14:33:02 +01:00
1 parent 79034dd314
commit a542813c8f
21 files changed
+234 -130

No files matched your search

+9 -2
View File
@@ -1,6 +1,14 @@
<?php
/**
* @package uForum2
* @file inc/controller.class.php
* @copyright 2007-2015 (c) PioDer <[email protected]>
* @link http://www.pioder.pl/
* @license see LICENSE.txt
**/
require_once('./inc/askModel.class.php');
require_once('./inc/view.class.php');
abstract class Controller extends AskModel {
@@ -27,11 +35,10 @@ abstract class Controller extends AskModel {
header('Location: ' . $address);
}
public function loadView($view)
{
if (file_exists('./inc/views/'.$view.'.class.php') && !array_key_exists($view, $this->views))
{
{
require_once('./inc/views/'.$view.'.class.php');
$this->views[$view] = new $view($this->db);
}