Using a same view page in different controller. |
Question Guys!
I have home_view.php view page and calling it by default like $this->load->view('home_view'); In my home controller It's my default index page and it's working fine. http://localhost/CIProject/ class Home extends CI_Controller { public function index() { $this->load->view('home_view'); } Now after user registration I'm want to display the same view page after validate user but off course it's already different URL. http://localhost/CIProject/login/validateUser class Login extends CI_Controller { public function validateUser() { $this->load->view('home_view'); } But I'm getting the following error notice: File: /home/aris/public_html/CIProject/application/controllers/Login.php Line: 12 Function: _error_handler File: /home/aris/public_html/CIProject/index.php Line: 315 Function: require_once
There are those who tell lies with meaning behind them and those meaning less lies!
|
Messages In This Thread |
Using a same view page in different controller. - by arisroyo - 03-11-2017, 05:18 AM
RE: Using a same view page in different controller. - by PaulD - 03-11-2017, 09:53 AM
RE: Using a same view page in different controller. - by Wouter60 - 03-11-2017, 12:20 PM
RE: Using a same view page in different controller. - by arisroyo - 03-11-2017, 04:05 PM
|