⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How do i make my callback functions inaccessible to the browser?



johndavedecano
  • profile picture
  • Member

Posted 04 July 2012 - 07:48 AM

Thank you very much in advance. I just wanna know how you guys hide the callback functions from the browser?. I just knew that since its a function inside a controller, it can be accessible when you browse its controllers name.



Thanks,Dave :)

mikelamar
  • profile picture
  • Member

Posted 04 July 2012 - 18:06 PM

Your methods can simply begins with an underscore (_) for example if you have:


public function _my_custom_callback()
{
return "whatever";
}


it is not accessible from the url. You cannot even do : examples/_my_custom_callback it will not work.

johndavedecano
  • profile picture
  • Member

Posted 04 July 2012 - 20:38 PM

Thank you very much for your help...