Welcome Guest, Not a member yet? Register   Sign In
sharing controller
#1

hello,
I want to share one controller between several applications.
I find solution for views and models using
PHP Code:
$autoload['packages'] = array('../GestionHabilitations_ThirdParty'); 
but it doesn't work for controllers.

Is it possible ?

Thanks
Reply
#2

CodeIgniter - Users Guide

Look at the MY_Controller - in Creating Core System Classes.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 08-08-2017, 04:30 PM by skunkbad.)

Community Auth is a third party package that has an example controller, and an encryption key controller. Installation instructions simply tell the dev to move the controllers to application/controllers. If copy and paste is too hard to do, then maybe instructions can tell the dev to have their mom do it? All kidding aside, whoever is going to use the package must do a little work and/or reading documentation for the package. It's not unrealistic to include some controllers they will have to move.
Reply
#4

Thank you InsiteFX & shunkbad.
I will try MY_Controller later.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB