Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public function index(){
  2. $this->load->view('home');
  3. }
  4.  
  5. RewriteEngine on
  6. RewriteCond $1 !^(index\.php|resources|robots\.txt)
  7. RewriteCond %{REQUEST_FILENAME} !-f
  8. RewriteCond %{REQUEST_FILENAME} !-d
  9. RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  10.  
  11. <?php
  12.  
  13. class Some_controller_name extends CI_Controller {
  14.  
  15. public function index(){
  16. $this->load->view('home');
  17. }
  18. }
  19.  
  20. application
  21.  
  22. application > views > home.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement