diff --git a/application/config/autoload.php b/application/config/autoload.php index 7cdc9013c11..47a3ba29d0e 100644 --- a/application/config/autoload.php +++ b/application/config/autoload.php @@ -89,7 +89,7 @@ | | $autoload['helper'] = array('url', 'file'); */ -$autoload['helper'] = array(); +$autoload['helper'] = array('url'); /* | ------------------------------------------------------------------- diff --git a/application/config/database.php b/application/config/database.php index 0088ef1403b..0dd5791f3fe 100644 --- a/application/config/database.php +++ b/application/config/database.php @@ -76,9 +76,9 @@ $db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', - 'username' => '', + 'username' => 'root', 'password' => '', - 'database' => '', + 'database' => 'ninstagram', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => FALSE, diff --git a/application/config/routes.php b/application/config/routes.php index 1b45740d7c7..51ae42b83f9 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -49,6 +49,6 @@ | Examples: my-controller/index -> my_controller/index | my-controller/my-method -> my_controller/my_method */ -$route['default_controller'] = 'welcome'; +$route['default_controller'] = 'login'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; diff --git a/application/controllers/login b/application/controllers/login new file mode 100644 index 00000000000..f1096e75e6b --- /dev/null +++ b/application/controllers/login @@ -0,0 +1,25 @@ + + * @see https://codeigniter.com/user_guide/general/urls.html + */ + public function index() + { + $this->load->view('View_Login'); + } +} diff --git a/application/views/View_Login b/application/views/View_Login new file mode 100644 index 00000000000..12bb5473133 --- /dev/null +++ b/application/views/View_Login @@ -0,0 +1,73 @@ + + + + + Vietgram | Login + + + + + + + + + + + + + +
+
+ +
+
+ + + +
+
+ + + + diff --git a/asset b/asset new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/asset @@ -0,0 +1 @@ +