PHP Classes

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

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

Contents

Class file image Download
<?php

class home {

    function
index($locator) {
       
$content = '
<html>
<body>
    <h2>Front Controller: Module1 Home</h2>
   
    <ol>
    <li><a href="?module=module1">No Page Given - Default (here)</a></li>
    <li><a href="?module=module1&controller=page">Go to a Page - Default Action</a></li>
    <li><a href="?module=module1&controller=page&action=example">Go to a Page - Specify Action</a></li>
    <li><a href="?module=module1&controller=DoesNotExist">Page does not exist - Error</a></li>
    <li><a href="?controller=home">Return Home</a></li>
    </ol>
    <a href="../">Return to Examples</a>
</body>
</html>
'
;
       
$response = $locator->get('Response');
       
$response->setContent($content);
    }

}

?>