I'm using codeigniter restserver and there are many shared functionality that goes the same in two different places (eg : Controller signup and rest controller signup)
As you know both controllers are inheriting from different types. I'm asking for the best practices to use a shared code without duplicate lines of codes everywhere.
Thanks!