Use controller in third-party folder |
Hello
My project have 2 section (User portal,Admin panel) I want to place admin panel folder in third party folder Example : third_party/admin/controllers third_party/admin/models third_party/admin/libraries In third_party/admin/controllers exist profile.php controller and i need to call this controller in browser I cannot use add_package_path for use this advance maybe?
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 The same goes for models: Quote:Anatomy of a Model And for views: Quote:Storing Views within Sub-directories
(11-27-2017, 11:59 PM)Wouter60 Wrote: You can't do this. Yes i use sub-folder controller finally Thanks
(11-27-2017, 11:59 PM)Wouter60 Wrote: You can't do this. Can i use sub-folder for libraries?
|
Welcome Guest, Not a member yet? Register Sign In |