help uploading a codeigniter project to a live server |
[eluser]webdevdesi[/eluser]
I had this codeigniter project that works on localhost, but not on a live server. The links don't work and some of the views won't either. It get a message that says that a requested file can not be loaded. The server is www.000webhost.com I think it has problem with the controllers and some views. The main content view doesn't show, but the side bar and the header work. This is the controller: class Products extends CI_Controller{ public function index(){ //Get All Products $data['products']= $this->Product_model->get_products(); //Load View $data['main_content'] = 'products'; $this->load->view('layouts/main',$data); } public function details($id){ //Get products details $data['product']= $this->Product_model->get_product_details($id); //Load View $data['main_content'] = 'details'; $this->load->view('layouts/main',$data); } } And this is the view: <?php $this->load->view('layouts/includes/header');?> <?php $this->load->view($main_content);?> <?php $this->load->view('layouts/includes/footer');?> |
Messages In This Thread |
help uploading a codeigniter project to a live server - by El Forum - 09-18-2014, 09:11 PM
help uploading a codeigniter project to a live server - by El Forum - 09-18-2014, 10:30 PM
help uploading a codeigniter project to a live server - by El Forum - 09-19-2014, 02:47 AM
help uploading a codeigniter project to a live server - by El Forum - 09-20-2014, 11:44 AM
|