Andrey Andreev | c5536aa | 2012-11-01 17:33:58 +0200 | [diff] [blame] | 1 | <?php |
Andrey Andreev | c5536aa | 2012-11-01 17:33:58 +0200 | [diff] [blame] | 2 | defined('BASEPATH') OR exit('No direct script access allowed'); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 3 | |
Greg Aker | 63277b8 | 2010-11-09 13:46:13 -0600 | [diff] [blame] | 4 | class Welcome extends CI_Controller { |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 5 | |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 6 | /** |
| 7 | * Index Page for this controller. |
| 8 | * |
| 9 | * Maps to the following URL |
| 10 | * http://example.com/index.php/welcome |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 11 | * - or - |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 12 | * http://example.com/index.php/welcome/index |
| 13 | * - or - |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 14 | * Since this controller is set as the default controller in |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 15 | * config/routes.php, it's displayed at http://example.com/ |
| 16 | * |
| 17 | * So any other public methods not prefixed with an underscore will |
| 18 | * map to /index.php/welcome/<method_name> |
Andrey Andreev | bd202c9 | 2016-01-11 12:50:18 +0200 | [diff] [blame] | 19 | * @see https://codeigniter.com/user_guide/general/urls.html |
Greg Aker | a9924b8 | 2011-03-08 22:07:55 -0600 | [diff] [blame] | 20 | */ |
Greg Aker | 0310310 | 2011-03-08 22:05:05 -0600 | [diff] [blame] | 21 | public function index() |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 22 | { |
| 23 | $this->load->view('welcome_message'); |
| 24 | } |
| 25 | } |