Greg Aker | 4abfa68 | 2010-11-10 14:44:26 -0600 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 2 | |
Greg Aker | 63277b8 | 2010-11-09 13:46:13 -0600 | [diff] [blame] | 3 | class Welcome extends CI_Controller { |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 4 | |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 5 | /** |
| 6 | * Index Page for this controller. |
| 7 | * |
| 8 | * Maps to the following URL |
| 9 | * http://example.com/index.php/welcome |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 10 | * - or - |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 11 | * http://example.com/index.php/welcome/index |
| 12 | * - or - |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 13 | * Since this controller is set as the default controller in |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 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/welcome/<method_name> |
| 18 | * @see http://codeigniter.com/user_guide/general/urls.html |
| 19 | */ |
Greg Aker | 0310310 | 2011-03-08 22:05:05 -0600 | [diff] [blame] | 20 | public function index() |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 21 | { |
| 22 | $this->load->view('welcome_message'); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /* End of file welcome.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 27 | /* Location: ./application/controllers/welcome.php */ |