PHP Classes

File: examples/model/views/FormView.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/model/views/FormView.php   Download  
File: examples/model/views/FormView.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 525 bytes
 

Contents

Class file image Download
<?php

class FormView 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('template');
       
$layout->set('values', $this->values);
       
$layout->set('errmsg', $this->errmsgs);
       
$content = $layout->render();
        echo
$content;
    }

}