Welcome Guest, Not a member yet? Register   Sign In
Tutorial CI ain't working for me
#1

[eluser]Chilion[/eluser]
Sorry to bother you with these kind of question.

I'm following the CI tutorial point to point but as I come to the part where I should get a page in my browser it doesn't work.

I get a 404, but not the CI 404, its standard Chrome/Firefox/IE 404.
Tried all 3 browsers so not a browser problem, copied code exactly from tutorial, still not working.

I thought it might be the basePath in system/config/config.php so I tried alot of combinations but after all it's just on a domainname without any extra folders (http://www.hcgroup.nl/)

I've changed the names of the application and system folders, so I tried with the new name and with the old name, still no luck.

My enviroment is perfect, right PHP version etc etc.

What am I doing wrong?

My pages.php code (Controller)
Code:
<?php

class Pages extends CI_Controller
{
public function view($page = 'home')
{
   if (!file_exists('frameworkApplicatieCodeSecure/views/pages/'.$page.'.php')){
    // Whoops, we don't have a page for that!
    show_404();
   }
  
   $data['title'] = ucfirst($page); // Capitalize the first letter
  
   $this->load->view('templates/header', $data);
   $this->load->view('pages/'.$page, $data);
   $this->load->view('templates/footer', $data);
}
}


Please help me! Smile



Messages In This Thread
Tutorial CI ain't working for me - by El Forum - 01-02-2013, 10:38 AM
Tutorial CI ain't working for me - by El Forum - 01-02-2013, 12:17 PM
Tutorial CI ain't working for me - by El Forum - 01-02-2013, 01:05 PM
Tutorial CI ain't working for me - by El Forum - 01-02-2013, 01:10 PM
Tutorial CI ain't working for me - by El Forum - 01-03-2013, 02:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB