Is it possible to access MY_Controller Public Function in CodeIgniter via browser -
i learning codeigniter. have defined my_controller class residing inside application/core folder.
inside this, there public function.
my question is, can directly access function or other public function defined in my_controller via browser url.
yes it possible.
if method public can call using controller extends my_controller , not override method ( i.e not have method same name defined in my_controller class) :
this how can it. create simple controller extend my_controller :
somecontroller.php
class somecontroller extends my_controller{ }
now can access url such :
yourdomain.com/somecontroller/yourmycontrollermethodname
Comments
Post a Comment