CodeIgniter Forums

Full Version: passing 1 (or more) param's to a controller function?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

El Forum

[eluser]Mad Maurice[/eluser]
If you want to get function params as array use the php function func_get_args and leave the function header without params.

Should work

El Forum

In this case I'd use the Post method... why? It's SAFER! Just imagine some one figures out that they can pass IDs through the URL and wipe out all the data! GAH! Makes me nervous. If you were selecting data, that would be one thing... but when manipulating DB data.... POST all the way.


El Forum

Hi techgnome

a user would have to logon in order to access this function, and they'd only be manipulating their own data, BUT point taken for the example I gave!


Pages: 1 2