2012-07-12 10:31:08 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* meta
|
|
|
|
*
|
|
|
|
* Hierarchial data tool
|
|
|
|
*
|
|
|
|
* @package meta
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
|
|
|
* @link https://github.com/aviat4ion/meta
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
namespace meta;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Base controller class to hold common functionality
|
|
|
|
*
|
|
|
|
* @param package meta
|
|
|
|
*/
|
|
|
|
abstract class Controller extends \miniMVC\Controller {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create the controller and build page header
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
2012-08-09 16:36:27 -04:00
|
|
|
$this->load_model('meta\Model');
|
2012-07-12 10:31:08 -04:00
|
|
|
$this->page->build_header();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Destruct controller and build page footer
|
|
|
|
*/
|
|
|
|
public function __destruct()
|
|
|
|
{
|
|
|
|
$this->page->build_footer();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|