Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: yodapt on Aug 29th, 2011  |  syntax: PHP  |  size: 0.41 KB  |  hits: 136  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php defined('SYSPATH') or die('No direct script access.');
  2.  
  3. class Controller_Site_Home extends Controller_Base {
  4.  
  5.         # required roles
  6.         public $auth_required = FALSE;
  7.        
  8.         # secure actions
  9.         public $secure_actions = FALSE;
  10.  
  11.         public function action_index()
  12.         {
  13.                 # performs routine tasks
  14.                 parent::init();
  15.                
  16.                 # loads the view
  17.                 $view = new View_Site_Home_Index;
  18.                
  19.                 $this->response->body($view);
  20.         }
  21. }