implemented buildURL() function (and fixed redirecting on https page)
added comments block (file description) in each PHP file
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
<?php
|
||||
/**
|
||||
* @package uForum2
|
||||
* @file inc/controller.class.php
|
||||
* @copyright 2007-2015 (c) PioDer <piotrek@pioder.pl>
|
||||
* @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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user