PHP Classes

File: examples/user/controllers/error.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/user/controllers/error.php   Download  
File: examples/user/controllers/error.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: 479 bytes
 

Contents

Class file image Download
<?php
#include_once 'A_Template.php';

class error extends A_Controller_Action {
    protected
$content;
    protected
$template_main;
   
    function
__construct($locator){
       
parent::__construct($locator);
       
$this->usersession = $locator->get('UserSession');
    }
/*
    function error($locator) {
       
    }
*/
   
function index($locator) {
       
$page_template = new A_Template_Strreplace('templates/error.html');
       
       
$this->response->setContent($page_template->render());
    }
}