Browse Source

Added FormViewHelper @method form() to PHPView

master
Anton Terekhov 12 years ago
parent
commit
e5a0df37fc
  1. 15
      view/PHPView.php

15
view/PHPView.php

@ -5,8 +5,6 @@
* @package Majestic
* @subpackage View
* @since 2010-02-25
* @version SVN: $Id$
* @filesource $URL$
*/
/**
@ -15,16 +13,21 @@
* @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 $path = '';
protected $variables = array();
protected $helpers = array();
protected $helpers = array();
protected $extension = '.phtml';
protected $template = '';
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();

Loading…
Cancel
Save