Welcome Guest, Not a member yet? Register   Sign In
calling a function of controller
#1

[eluser]junaids[/eluser]
hi
i have a controller user.
it has two functions.login and edit.
inside edit function i want to call login function..how its done?
#2

[eluser]Pascal Kriete[/eluser]
If you just want to call it:
Code:
$this->login()

If you want to redirect:
Code:
$this->load->helper('url');
redirect('user/login');

Does that answer your question?
#3

[eluser]junaids[/eluser]
ya. thanks




Theme © iAndrew 2016 - Forum software by © MyBB