Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tetiana yaremko
/
web-app-group2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8ba8d632
authored
Apr 23, 2020
by
tetiana yaremko
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
cart session fixed
parent
d8b37bdb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
application/config/routes.php
application/controllers/Auth.php
application/config/routes.php
View file @
8ba8d632
...
@@ -49,7 +49,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
...
@@ -49,7 +49,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| Examples: my-controller/index -> my_controller/index
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
| my-controller/my-method -> my_controller/my_method
*/
*/
$route
[
'default_controller'
]
=
'welcome'
;
//
$route['default_controller'] = 'welcome';
//
$route['default_controller'] = 'auth/login';
$route
[
'default_controller'
]
=
'auth/login'
;
$route
[
'404_override'
]
=
''
;
$route
[
'404_override'
]
=
''
;
$route
[
'translate_uri_dashes'
]
=
FALSE
;
$route
[
'translate_uri_dashes'
]
=
FALSE
;
application/controllers/Auth.php
View file @
8ba8d632
...
@@ -100,7 +100,7 @@ class Auth extends CI_Controller
...
@@ -100,7 +100,7 @@ class Auth extends CI_Controller
$this
->
load
->
model
(
'Register_model'
,
'reg'
);
$this
->
load
->
model
(
'Register_model'
,
'reg'
);
$this
->
reg
->
register_user
();
$this
->
reg
->
register_user
();
$name
=
$this
->
input
->
post
(
'name'
);
$name
=
$this
->
input
->
post
(
'name'
);
$this
->
load
->
view
(
"registration_successful
"
,
$name
);
redirect
(
"auth/registration_success
"
,
$name
);
}
}
...
@@ -209,6 +209,11 @@ class Auth extends CI_Controller
...
@@ -209,6 +209,11 @@ class Auth extends CI_Controller
}
}
public
function
registration_success
()
{
$this
->
load
->
view
(
'registration_sucessful'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment