1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00
wp-theme/controller/controller.inc.php

20 lines
377 B
PHP
Raw Normal View History

2015-09-18 02:13:03 +02:00
<?php
/**
* Created by PhpStorm.
* User: sarahetter
*/
class Controller {
public function __construct() {
spl_autoload_register(function ($class) {
require_once 'classes/' . $class . '.php';
});
}
2015-09-18 02:13:03 +02:00
public function loopSubtemplates() {
$controller = new Subtemplate();
return $controller->loopSubtemplates();
}
}