CodeIgniter Forums
passing 1 (or more) param's to a controller function? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: passing 1 (or more) param's to a controller function? (/showthread.php?tid=35537)

Pages: 1 2


passing 1 (or more) param's to a controller function? - El Forum - 11-02-2010

[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


passing 1 (or more) param's to a controller function? - El Forum - 11-02-2010

[eluser]techgnome[/eluser]
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.

-tg


passing 1 (or more) param's to a controller function? - El Forum - 11-03-2010

[eluser]PeteSig[/eluser]
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!

Cheers

Pete