PHP Classes

File: examples/frontcontroller_prefilters/controllers/home.php

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


Class file image Download

class home {

index($locator) {
$content = '
    <h2>Front Controller: Home</h2>
    In these examples the Front Controller is calling methods or setting properties in the Action Controller before dispatch using addInjector().
    <li><a href="?">No Page Given - Default (here)</a></li>
    <li><a href="?controller=page1">Controller with pre method - Default Security Action</a></li>
    <li><a href="?controller=page2">Controller with pre method - Custom Security Action</a></li>
    <li><a href="?controller=page3">Controller with pre method - Action with no forward</a></li>
    <li><a href="?controller=page4">Controller with pre filter - Inject Response object in Action by setting property</a></li>
    <li><a href="?controller=DoesNotExist">Page does not exist - Error</a></li>
    <a href="../">Return to Examples</a>
$response = $locator->get('Response');



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