Welcome Guest, Not a member yet? Register   Sign In
404 Page Not Found The page you requested was not found.
#1

[eluser]behnampmdg3[/eluser]
Hello;

Trying to get it to go to goldcoast_share_accommodation if the user goes to goldcoast-share-accommodation but I get 404.


Quote:http://test.com/goldcoast-share-accommodation/
Route in config
Code:
$route['Goldcoast-share-accommodation'] = "Goldcoast_share_accommodation";
Code:
class Goldcoast_share_accommodation extends CI_Controller {
public function __construct($id)
       {
            parent::__construct();
            $this->index($id);
       }

public function index($id)
  {
   print_r($id);
   /*$this->load->model('model_ads');
   $data['results'] = $this->model_ads->list_haves();
   $this->load->view('view_header', $data);
   $this->load->view('view_home_page', $data);
   $this->load->view('view_footer', $data);*/
  }
}
If I go directly to goldcoast_share_accommodation it works fine.

What am I doing wrong?

Thanks


Messages In This Thread
404 Page Not Found The page you requested was not found. - by El Forum - 09-03-2013, 03:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB