More Quercus fixes
This commit is contained in:
parent
aedc4bb31a
commit
eebe7c8fc8
@ -1,4 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
class Welcome extends MM_Controller {
|
||||
|
||||
|
@ -1,6 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Model template class
|
||||
*/
|
||||
class Welcome_Model extends MM_Model{
|
||||
|
||||
function __construct(){}
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
@ -23,9 +23,6 @@ class Output extends JSObject{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
// Compression is good!
|
||||
//ob_start("ob_gzhandler");
|
||||
|
||||
$this->buffer = "";
|
||||
$this->headers = array();
|
||||
}
|
||||
@ -40,6 +37,8 @@ class Output extends JSObject{
|
||||
{
|
||||
// Set headers
|
||||
foreach($this->headers as $key => $val)
|
||||
{
|
||||
if( ! empty( $key or $val))
|
||||
{
|
||||
if( ! isset($val))
|
||||
{
|
||||
@ -49,14 +48,16 @@ class Output extends JSObject{
|
||||
{
|
||||
@header("$key: $val");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( ! empty($this->buffer))
|
||||
{
|
||||
// Compression is good!
|
||||
ob_start("ob_gzhandler");
|
||||
echo $this->buffer;
|
||||
//ob_end_flush();
|
||||
ob_end_flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user