Advertisement
shaashwato1308

CodeIgniter - Controller Template

Aug 5th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class File_name extends CI_Controller {
  4.  
  5.     /**
  6.      * Index Page for this controller.
  7.      *
  8.      * Maps to the following URL
  9.      *      http://example.com/index.php/file_name
  10.      *  - or -  
  11.      *      http://example.com/index.php/file_name/index
  12.      *  - or -
  13.      * Since this controller is set as the default controller in
  14.      * config/routes.php, it's displayed at http://example.com/
  15.      *
  16.      * So any other public methods not prefixed with an underscore will
  17.      * map to /index.php/file_name/<method_name>
  18.      * @see http://codeigniter.com/user_guide/general/urls.html
  19.      */
  20.     public function index()
  21.     {
  22.         $this->load->view();
  23.     }
  24. }
  25.  
  26. /* End of file file_name.php */
  27. /* Location: ./application/controllers/file_name.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement