PHP Classes

File: examples/frontcontroller_prefilters/controllers/page2.php

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

Contents

Class file image Download
<?php

class page2 {
    protected
$response;

    function
denyAccess($locator) {
        echo
"ACCESS CHECK\n";
       
$forward = array('', 'security-custom', 'index');
        return
$forward;
    }
   
    function
index($locator) {
       
$content = '
<html>
<body>
    <h2>Front Controller: Page 2 - Action</h2>
    <a href="?controller=home">Return Home</a>
</body>
</html>
'
;
       
$response = $locator->get('Response');
       
$response->setContent($content);
    }

}

?>