2011-12-28 19:33:41 -05:00
|
|
|
<?php
|
2012-01-11 12:21:52 -05:00
|
|
|
/**
|
|
|
|
* MiniMVC
|
|
|
|
*
|
|
|
|
* Convention-based micro-framework for PHP
|
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2011 - 2012
|
|
|
|
* @link https://github.com/timw4mail/miniMVC
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
2011-12-28 19:33:41 -05:00
|
|
|
|
2011-12-29 10:31:04 -05:00
|
|
|
class Welcome extends MM_Controller {
|
2011-12-28 19:33:41 -05:00
|
|
|
|
|
|
|
function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
|
|
|
|
function index()
|
|
|
|
{
|
2011-12-30 16:41:25 -05:00
|
|
|
$output = $this->page->set_message('info', "This is just a test message", TRUE);
|
|
|
|
$this->page->output_string($output);
|
2011-12-29 16:57:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function php()
|
|
|
|
{
|
|
|
|
ob_start();
|
|
|
|
phpinfo();
|
|
|
|
$output = ob_get_contents();
|
|
|
|
ob_end_clean();
|
2011-12-29 10:31:04 -05:00
|
|
|
|
2011-12-29 16:57:28 -05:00
|
|
|
$this->output->set_output($output);
|
2011-12-28 19:33:41 -05:00
|
|
|
}
|
2012-01-10 12:45:04 -05:00
|
|
|
|
|
|
|
function reflect()
|
|
|
|
{
|
|
|
|
$this->r = new R($this);
|
|
|
|
|
|
|
|
$obj = $this->r->get_all();
|
|
|
|
|
|
|
|
$this->output->set_output($this->__toString('print_r', $obj));
|
|
|
|
}
|
2011-12-28 19:33:41 -05:00
|
|
|
}
|