PHP Classes

File: examples/cms/app/admin/controllers/posts.php

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

Contents

Class file image Download
<?php

class posts extends A_Controller_Action {

    /*
     * This function is called only if it exists. Front Controller pre-filter 
     * calls it to get required groups for this controller
     */
    public function _requireGroups(){
        return array('post');
    }
    
    function index($locator) { 
        $template = $this->_load()->template();
        
        $this->response->set('maincontent', $template->render());

    }

}