• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI Version 3.1.3 My Controller Call to undefined method

#4
Please read Narf's answer.

If your dashboard controller needs to call methods in your "MY_Controller", you should not use CI_Controller but MY_Controller in the definition of the dashboard class:

PHP Code:
class dashboard extends MY_Controller {

 
  public function index() {
 
      $this->test();
 
  }


Reply


Messages In This Thread
RE: CI Version 3.1.3 My Controller Call to undefined method - by Wouter60 - 02-02-2017, 10:48 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.