Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Calls extends CI_Controller
- {
- public function __construct()
- {
- parent::__construct();
- $url = $this->uri->segment(2);
- if (!empty($url) && is_numeric($url))
- $this->getCall($url);
- }
- public function index()
- {
- redirect(base_url(), 'refresh');
- }
- public function getCall($param)
- {
- /*
- Get the call in DB
- */
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement