i have created a codeigniter application and when i tried to access it locally, it says "No direct script access allowed". i don't know what's the problem .i'm using ubuntu .

i need some help with this :)

That's probably happens because you're trying to access the controller from the application directory instead of using the index.php file.

If, for example you have a controller named Articles, then try:

http://localhost/index.php/articles

If this does not help then try to provide more information:

  • an example of url used to access to the app
  • example code

thanks for your reply :) .i've solved the problem by downloading a new codeigniter and making some configurations :)

@archie.herbias should prob mark this thread as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.