<?php
class Form4View extends A_Http_View {
protected $values = array();
protected $errmsgs = array();
function __construct($locator) {
parent::__construct($locator);
}
function setValues($values) {
$this->values = $values;
}
function setErrorMsg($errmsgs) {
$this->errmsgs = $errmsgs;
}
function render() {
$layout = $this->_load()->template('example_form4');
$layout->set('values', $this->values);
$layout->set('errmsg', $this->errmsgs);
$content = $layout->render();
return $content;
}
}
|