File: examples/cms/app/blog/controllers/guides.php

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

Contents

Class file image Download
<?php

class guides extends A_Controller_Action {

    function
__construct($locator) {
       
parent::__construct($locator);
       
$this->response->set('subcontent', 'This is the subcontent value. I set it in the action controller constructor. So, by default you would see this on all "pages" under this area. Maybe I should use this or something like it to modify the sub-navigation above. ');
    }
   
   
/* Default action. Shows latest articles */
   
function index($locator) {
       
$this->response->set('maincontent', 'This is the maincontent for the GUIDES page. ');
       
$this->response->set('subcontent', 'This is the subcontent for the blog index page. ');
    }
   
    function
buyers($locator) {
       
$this->response->set('maincontent', '<h1>Buyers Guide</h1>This is the maincontent for the buyers page. ');
    }

    function
sellers($locator) {
       
$this->response->set('maincontent', '<h1>Sellers Guide</h1>This is the maincontent for the sellers page. ');
    }


}

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