-1

My first controller is "zoom" and the second controller is "user". How can I call the zoom controller function into the User controller without class extends?

  • 1
    But why ??? Controller to Controller ?? If you have a common method, use a Model instead. – Abdulla Nilam Jun 03 '22 at 06:09
  • @AbdullaNilam , because I want to create a separate zoom controller, and When I need I have only called this, the reason for the speed issue. like library, but if I create library, in this file I don't use default $this->db function for get data into DB/ – Pankaj Dhameliya Jun 03 '22 at 07:01

1 Answers1

0

You can't use another controller function inside the controller without extend. You can archive this in these two ways.

  1. Create a Helper class
  2. Create a generic model.