PHP Classes

File: examples/user/controllers/example.php

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

Contents

Class file image Download
<?php
#include_once 'A/Template/Strreplace.php';

class example {
    protected
$content;
    protected
$template_main;

    function
example($locator) {
    }
   
    function
index($locator) {
       
$request = $locator->get('Request');
       
$response = $locator->get('Response');
       
       
$page_template = new A_Template_Strreplace('templates/example.html');
       
       
$response->setContent($page_template->render());
    }

}

?>