PHP Classes

File: examples/actioncontroller/app/module1/controllers/example.php

Recommend this page to a friend!
  Packages of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/actioncontroller/app/module1/controllers/example.php   Download  
File: examples/actioncontroller/app/module1/controllers/example.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: 10 years ago
Size: 441 bytes
 

Contents

Class file image Download
<?php
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 1);
ini_set('log_errors', 'Off');
class example extends A_Controller_Action {

    function index($locator) {
        $this->_load()->response()->view();
    }

    function bar($locator) {
        $model = $this->_load()->model();
        $template = $this->_load('global')->template();
        $template->set('model', $model);
        $this->response->setRenderer($template);
    }

}