• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You don't have permission to access /CodeIgniter/application/controllers

i'm new to codeigniter, trying to follow instruction on how to install it from the user manual but whenever i try a sample of a program in a controller i like this

class Site extends CI_Controller(){
function index(){

i got this error: Forbidden! You don't have permission to access /CodeIgniter/application/controllers

i'm using codeigniter v 2.1.2

please help!!

Try calling the parent constructor...

public function __construct()

It looks like you tried to access your controller directly in the url, like http://yoursite.com/Codeigniter/applicat...llers/site, which you can't do and is not how CI works with URLs.

You would use:
http://yoursite.com/site if you use the htaccess rules for making CI work without index.php in the url

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.