Check method/function exist with Controller |
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 { hope someone could help. Thanks in advanced
Depending where in the application you want this to happen, you can use the _remap function from CI
https://ellislab.com/codeigniter/user-gu...llers.html PHP Code: public function _remap($method, $params = array())
What is your idea ?
Where you want to make this check? Best VPS Hosting : Digital Ocean
You can use the _remap method from CI as described here:
http://www.codeigniter.com/userguide3/ge...thod-calls The following short example shows you a quick usage PHP Code: class User extends CI_Controller { |
Welcome Guest, Not a member yet? Register Sign In |