Advertisement
ClovisFilho

Untitled

Jun 21st, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Calls extends CI_Controller
  3. {    
  4.     public function __construct()
  5.     {
  6.         parent::__construct();
  7.         $url = $this->uri->segment(2);
  8.         if (!empty($url) && is_numeric($url))
  9.             $this->getCall($url);
  10.     }
  11.    
  12.     public function index()
  13.     {
  14.         redirect(base_url(), 'refresh');
  15.     }
  16.    
  17.     public function getCall($param)
  18.     {
  19.         /*
  20.             Get the call in DB
  21.         */
  22.     }  
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement