CodeIgniter Forums
Problems with third_party/ion_auth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Problems with third_party/ion_auth (/showthread.php?tid=66849)



Problems with third_party/ion_auth - muuucho - 12-10-2016

I have installed and worked with ion_auth by placing all the ion_auth files among my other files, like placed the controller Auth.php in my own application/controllers folder. 

Now, I like to try to have it installed as a third_party,  separated from the rest, so now I placed the ion_auth package in applications/third_party/ion_auth/.

So, how can I access a controller in that third_party folder?
I try to tell codeigniter that I have all Ion_auth stuff in my third_party folder by telling this to autoload.php:
Code:
$autoload['packages'] = array(APPPATH.'third_party/ion_auth');

So in my browser, I try "localhost/myApp/index.php/auth"

But all I get is "404 Page not found".






RE: Problems with third_party/ion_auth - frankiefanstar - 01-24-2017

According to the system/core/Loader.php , the add_package_path function only takes effect for library,model,helper and config.The controller in third_party path is not included.You should copy your controller file under third_party to the application/controller/