PHP Classes

File: examples/blog/app/admin/controllers/admin.php

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

Contents

Class file image Download
<?php

class admin {

   
/*
     * 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','admin');
    }
   
    function
index($locator) {
       
$locator->get('Response')->setPartial('maincontent', 'admin');
    }

}