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


Class file image Download

class guides extends A_Controller_Action {

__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. ');
buyers($locator) {
$this->response->set('maincontent', '<h1>Buyers Guide</h1>This is the maincontent for the buyers page. ');

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.