PHP Classes

File: examples/view/app/views/exampleView.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/view/app/views/exampleView.php   Download  
File: examples/view/app/views/exampleView.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: 721 bytes
 

Contents

Class file image Download
<?php

class exampleView extends A_Http_View {
    public function
__construct($locator) {
       
parent::__construct($locator);
       
$this->setTemplate('example');
       
$this->set('menuitems', array(
            array(
'menu_link' => '?', 'menu_title'=>'default action using setTemplate()'),
            array(
'menu_link' => '?controller=example&action=needsdifferenttemplate','menu_title'=>'this action uses setTemplate() with a different template'),
            array(
'menu_link' => '?controller=example&action=actionsetscontent','menu_title'=>'this action uses setContent()'),
            array(
'menu_link' => '?controller=example&action=actionsetsrenderer','menu_title'=>'this action uses setsRenderer() and the A_Template_Strreplace class'))
            );
    }
}