Welcome Guest, Not a member yet? Register   Sign In
Check method/function exist with Controller
#1

(This post was last modified: 12-11-2014, 09:07 PM by vrsotto.)

Hi guys,

can anyone please help, how can i check if method/funcion exist within class/controller? say:

PHP Code:
class User extends CI_Controller {
 
   public function __construct() {
 
     parent::__construct();
 
   }

 
   public function login() {
 
      ...
 
   }

the idea is, i want to check function "login()" if exist and execute.

hope someone could help.

Thanks in advanced 
Reply


Messages In This Thread
Check method/function exist with Controller - by vrsotto - 12-11-2014, 09:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB