PHP Classes

File: doc/examples/website/views/view.home.php

Recommend this page to a friend!
  Classes of Kristo Vaher   Wave Framework   doc/examples/website/views/view.home.php   Download  
File: doc/examples/website/views/view.home.php
Role: Class source
Content type: text/plain
Description: Example View
Class: Wave Framework
MVC framework for building Web sites and APIs
Author: By
Last change: removed references to
Date: 14 days ago
Size: 1,754 bytes


Class file image Download

 * Website Tutorial <>
 * Tutorial Home View
 * It is recommended to extend View classes from WWW_Factory in order to
 * provide various useful functions and API access for the view.
 * @package Factory
 * @author Kristo Vaher <>
 * @copyright Copyright (c) 2012, Kristo Vaher
 * @license Unrestricted
 * @tutorial /doc/pages/tutorial_website.htm
 * @since 1.0.0
 * @version 1.0.0

class WWW_view_home extends WWW_Factory {

     * View Controller calls this function as output for page content.
     * This method returns null by default because the API will load the
     * result from output buffer, if the API call echoes/prints any output.
     * It is recommended for View methods not to return any variable data.
     * @param array $input input array from View Controller
     * @return null
public function render($input){
// Loading translations
// Loading sitemap
// Loading view data
<div id="header">
                <a href="<?=$sitemap['page/contact']['url']?>"><?=$sitemap['page/contact']['meta-title']?></a>
                <a href="<?=$sitemap['page/about']['url']?>"><?=$sitemap['page/about']['meta-title']?></a>
                <a href="<?=$sitemap['add']['url']?>"><?=$sitemap['add']['meta-title']?></a>
                <a href="<?=$sitemap['list']['url']?>"><?=$sitemap['list']['meta-title']?></a>
                <a href="<?=$sitemap['home']['url']?>"><?=$sitemap['home']['meta-title']?></a>
            <div id="body">
// API Will load result data from output buffer
return null;