File: examples/frontcontroller/module1/controllers/page.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/frontcontroller/module1/controllers/page.php  >  Download  
File: examples/frontcontroller/module1/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: 5 years ago
Size: 745 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 - Module1 Default Action</h2>
    <p><a href="?module=module1&controller=home">Module Home</a></p>
    <a href="?controller=home">Return Home</a>
</body>
</html>
'
;
       
$this->response->setContent($content);
    }

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

}

?>

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