diff --git a/CodeIgniter-3.1.13/application/config/routes.php b/CodeIgniter-3.1.13/application/config/routes.php index e8e2296..0cbab5f 100644 --- a/CodeIgniter-3.1.13/application/config/routes.php +++ b/CodeIgniter-3.1.13/application/config/routes.php @@ -49,6 +49,6 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | Examples: my-controller/index -> my_controller/index | my-controller/my-method -> my_controller/my_method */ -$route['default_controller'] = 'welcome'; +$route['default_controller'] = 'home'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; diff --git a/CodeIgniter-3.1.13/application/controllers/Home.php b/CodeIgniter-3.1.13/application/controllers/Home.php new file mode 100644 index 0000000..bd4abba --- /dev/null +++ b/CodeIgniter-3.1.13/application/controllers/Home.php @@ -0,0 +1,10 @@ +load->view('accueil'); + } +} diff --git a/CodeIgniter-3.1.13/application/controllers/Welcome.php b/CodeIgniter-3.1.13/application/controllers/Welcome.php deleted file mode 100644 index 5f82771..0000000 --- a/CodeIgniter-3.1.13/application/controllers/Welcome.php +++ /dev/null @@ -1,25 +0,0 @@ - - * @see https://codeigniter.com/userguide3/general/urls.html - */ - public function index() - { - $this->load->view('welcome_message'); - } -} diff --git a/CodeIgniter-3.1.13/application/views/accueil.php b/CodeIgniter-3.1.13/application/views/accueil.php new file mode 100644 index 0000000..0d21210 --- /dev/null +++ b/CodeIgniter-3.1.13/application/views/accueil.php @@ -0,0 +1,11 @@ + + + + + Page d'accueil + + +

Bienvenue sur notre site !

+

Ceci est la page d'accueil de notre application.

+ + diff --git a/CodeIgniter-3.1.13/application/views/welcome_message.php b/CodeIgniter-3.1.13/application/views/welcome_message.php deleted file mode 100644 index 9db22bc..0000000 --- a/CodeIgniter-3.1.13/application/views/welcome_message.php +++ /dev/null @@ -1,100 +0,0 @@ - - - - - Welcome to CodeIgniter - - - - - -
-

Welcome to CodeIgniter!

- -
-

The page you are looking at is being generated dynamically by CodeIgniter.

- -

If you would like to edit this page you'll find it located at:

- application/views/welcome_message.php - -

The corresponding controller for this page is found at:

- application/controllers/Welcome.php - -

If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.

-
- - -
- - -