miniMVC/modules/welcome/controllers/welcome.php

26 lines
373 B
PHP

<?php
class Welcome extends MM_Controller {
function __construct()
{
parent::__construct();
}
function index()
{
$this->page->output_string($this->page->set_message('info', "This is just a test message", TRUE));
}
function php()
{
ob_start();
phpinfo();
$output = ob_get_contents();
ob_end_clean();
$this->output->set_output($output);
}
}