Hide functions for public |
[eluser]Mittchel[/eluser]
Dear, I recently started out with CodeIgniter, and I really like it. It's an powerful framework which makes coding much easier and quicker. I now have a system up and running, and trying to check some security things.. and what I want is to hide functions for the public, I can dothis with _functionname(){} But I still want my method to be accessible from the URL, because I have ancors that link to that url. What I get if I go to this url: http://localhost/ci/properties/ I get the error: Quote:A PHP Error was encounteredPlus it shows my SQL statement, which is unsafe. That's because my method properties($id); needs an argument, so if I use this url: /properties/4/ I will get the data.. but I don't want to get that message when someone tries to acces without the ID how can I accomplish this? Regards, Code: function properties($id) |
Messages In This Thread |
Hide functions for public - by El Forum - 07-22-2011, 05:04 AM
Hide functions for public - by El Forum - 07-22-2011, 09:25 AM
|