Welcome Guest, Not a member yet? Register   Sign In
Use controller in third-party folder
#4

(11-27-2017, 11:59 PM)Wouter60 Wrote: You can't do this.
Controllers must be in the controllers folder.
The third_party folder is for .... well ...  third party scripts that don't follow the CI MVC approach straight away.

The documentation says this about controllers:
Quote:Organizing Your Controllers into Sub-directories

If you are building a large application you might want to hierarchically organize or structure your controllers into sub-directories. CodeIgniter permits you to do this.

Simply create sub-directories under the main application/controllers/ one and place your controller classes within them.

The same goes for models:
Quote:Anatomy of a Model

Model classes are stored in your application/models/ directory. They can be nested within sub-directories if you want this type of organization.

And for views:
Quote:Storing Views within Sub-directories

Your view files can also be stored within sub-directories if you prefer that type of organization. When doing so you will need to include the directory name loading the view.

Can i use sub-folder for libraries?
Reply


Messages In This Thread
RE: Use controller in third-party folder - by omid_student - 11-28-2017, 12:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB