Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 5.1.6 or newer |
| 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Academic Free License version 3.0 |
| 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame^] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * bundled with this package in the files license_afl.txt / license_afl.rst. |
| 13 | * It is also available through the world wide web at this URL: |
| 14 | * http://opensource.org/licenses/AFL-3.0 |
| 15 | * If you did not receive a copy of the license and are unable to obtain it |
| 16 | * through the world wide web, please send an email to |
| 17 | * licensing@ellislab.com so we can send you a copy immediately. |
| 18 | * |
| 19 | * @package CodeIgniter |
| 20 | * @author EllisLab Dev Team |
| 21 | * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/) |
| 22 | * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) |
| 23 | * @link http://codeigniter.com |
| 24 | * @since Version 1.0 |
| 25 | * @filesource |
| 26 | */ |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 27 | |
Greg Aker | 63277b8 | 2010-11-09 13:46:13 -0600 | [diff] [blame] | 28 | class Welcome extends CI_Controller { |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 29 | |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 30 | /** |
| 31 | * Index Page for this controller. |
| 32 | * |
| 33 | * Maps to the following URL |
| 34 | * http://example.com/index.php/welcome |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 35 | * - or - |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 36 | * http://example.com/index.php/welcome/index |
| 37 | * - or - |
Derek Jones | 37f4b9c | 2011-07-01 17:56:50 -0500 | [diff] [blame] | 38 | * Since this controller is set as the default controller in |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 39 | * config/routes.php, it's displayed at http://example.com/ |
| 40 | * |
| 41 | * So any other public methods not prefixed with an underscore will |
| 42 | * map to /index.php/welcome/<method_name> |
| 43 | * @see http://codeigniter.com/user_guide/general/urls.html |
| 44 | */ |
Greg Aker | 0310310 | 2011-03-08 22:05:05 -0600 | [diff] [blame] | 45 | public function index() |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 46 | { |
| 47 | $this->load->view('welcome_message'); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /* End of file welcome.php */ |
Derek Jones | f0b3994 | 2010-03-25 10:08:20 -0500 | [diff] [blame] | 52 | /* Location: ./application/controllers/welcome.php */ |