Welcome Guest, Not a member yet? Register   Sign In
404 error from codeigniter when hosted to server (tried every possible conditions)
#28

Let me write you an example from the scratch:

1- create a controller named Mysite
Inside this Mysite file: 
public function index() {
$this->load->view('index) ; // it shows your website-view- is not under a folder.. If under a folder then - >view(' Folder/viewfile') 
}
If your public function name is not index, then be careful about routing. 

2- Create your view. Either under a folder or not: directly in your view folder
3- arrange the route (you have learnt it)
4- some adjustments like config
5- upload your htaccess.

Plus, this link might help : https://stackoverflow.com/questions/2486...er-project

I'm trying my best on mobile. Hope it helps.
Reply


Messages In This Thread
RE: 404 error from codeigniter when hosted to server (tried every possible conditions) - by demyr - 06-03-2019, 02:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB