PHP Classes

File: apps/config/hooks.php

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   apps/config/hooks.php   Download  
File: apps/config/hooks.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 679 bytes
 

Contents

Class file image Download
<?php

/**
 * Tipe Hooks
 * sebelum muat constructor controller => before_construct
 * sebelum muat controller => before_controller
 * setelah muat controller => after_controller
 * setelah muat view => after_render
 *
 * Parameter
 * nama file hooks => fpath
 * nama class => class
 * function => method
 *
 * atau jika prosedural
 * function yang akan dieksekusi => func
 *
 * untuk url yang spesifik tambahkan url => url
 *
 * ex: $config['hooks'][tipe hooks] = array()
 */

 
$config['hooks'] = array(
   
// 'before_controller' => array(
    // 'fpath' => 'handle_halaman',
    // 'class' => 'HandleHalaman',
    // 'method' => 'siapkan_halaman',
    // )
 
);