I'm making a model in CodeIgniter and I don't want any of the functions to be accessible to the user. For controllers you would do something like:
private function _myfunction()
{
dosomething();
}
I know this will also work for models but my question is, is this needed? I don't think users can initiate these functions via the URL. The reason I'm asking is because I'd like to follow best practice but if possible I'd also like to avoid prefixing everything with '_' when I call it.