|
|
@ -5,8 +5,6 @@ |
|
|
|
* @package Majestic |
|
|
|
* @subpackage View |
|
|
|
* @since 2010-02-25 |
|
|
|
* @version SVN: $Id$ |
|
|
|
* @filesource $URL$ |
|
|
|
*/ |
|
|
|
|
|
|
|
/** |
|
|
@ -15,15 +13,20 @@ |
|
|
|
* @method HeadViewHelper head() head(string $string = false) Append another string to HEAD section of Layout |
|
|
|
* @method MsgViewHelper msg() msg(string $msg = null, string $type = null) Set a message to display for user in Layout |
|
|
|
* @method TitleViewHelper title() title(string $string = false) Append another section for TITLE of Layout |
|
|
|
* @method FormViewHelper form() form(string $form = null) Get form values from session |
|
|
|
* |
|
|
|
*/ |
|
|
|
class PHPView implements iView |
|
|
|
{ |
|
|
|
|
|
|
|
protected $path = ''; |
|
|
|
|
|
|
|
protected $variables = array(); |
|
|
|
|
|
|
|
protected $helpers = array(); |
|
|
|
|
|
|
|
protected $extension = '.phtml'; |
|
|
|
|
|
|
|
protected $template = ''; |
|
|
|
|
|
|
|
public function __construct($config) |
|
|
@ -97,7 +100,7 @@ class PHPView implements iView |
|
|
|
ob_start(); |
|
|
|
if (!is_readable($this->template)) { |
|
|
|
ob_clean(); |
|
|
|
throw new GeneralException('Template "' . $this->template .'" not found.'); |
|
|
|
throw new GeneralException('Template "' . $this->template . '" not found.'); |
|
|
|
} |
|
|
|
include($this->template); |
|
|
|
return ob_get_clean(); |
|
|
|