Advertisement
Guest User

Untitled

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