PHP Classes

File: examples/frontcontroller/controllers/page.php

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

Contents

Class file image Download
<?php

class page {
    protected
$response;

    function
page($locator) {
       
$this->response = $locator->get('Response');
    }
   
    function
index($locator) {
       
$content = '
<html>
<body>
    <h2>Front Controller: Page - Default Action</h2>
    <a href="?controller=home">Return Home</a>
</body>
</html>
'
;
       
$this->response->setContent($content);
    }

    function
example($locator) {
       
$content = '
<html>
<body>
    <h2>Front Controller: Page - Specific Action</h2>
    <a href="?controller=home">Return Home</a>
</body>
</html>
'
;
       
$this->response->setContent($content);
    }

}

?>