PHP Classes

File: views/view.404.php

Recommend this page to a friend!
  Classes of Kristo Vaher  >  Wave Framework  >  views/view.404.php  >  Download  
File: views/view.404.php
Role: Class source
Content type: text/plain
Description: 404 View
Class: Wave Framework
MVC framework for building Web sites and APIs
Author: By
Last change: Release candidate for 3.2.0 version. Database cache and Memcache support has been added for caching. Custom session handling is now supported. Also expanded cache feature guide documentation with information about APC and Memcache. Added option to return cache with only specific age with getCache() method call. Fixed PHPDoc comments. Added new configuration options.
Date: 9 years ago
Size: 1,426 bytes
 

Contents

Class file image Download
<?php

/**
 * MyProjectNameHere <http://www.example.com>
 * 404 View
 *
 * This view is called by WWW_controller_view if WWW_controller_url could not find a matching
 * view for current request. This can be used to customize page-specific page-not-found pages,
 * however this view is not used for missing files and other static resources.
 *
 * @package Factory
 * @author DeveloperNameHere <email@example.com>
 * @copyright Copyright (c) 2012, ProjectOwnerNameHere
 * @license Unrestricted
 * @tutorial /doc/pages/guide_mvc.htm
 * @since 1.0.0
 * @version 1.0.0
 */

class WWW_view_404 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){
   
       
// Note that this file is only delivered through Index Gateway Data Handler and not by File or Resource Handlers
        // This view is loaded when URL Controller is unable to find a proper view
       
        // This simply prints out a 404 message when no proper view was found
       
?>
<h1>404</h1>
        <?php
       
       
// API Will load result data from output buffer
       
return null;
       
    }

}
   
?>

For more information send a message to info at phpclasses dot org.