CodeIgniter Forums
Phpdoc & controllers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Phpdoc & controllers (/showthread.php?tid=55017)



Phpdoc & controllers - El Forum - 10-05-2012

[eluser]Unknown[/eluser]
Hello.

I have some controllers with a lot of functions, that make my API. Like getUsers, setPrice etc. All of them use input class and I pass parameters to them using GET or POST method. But how should I comment them using phpdoc? When we consider models, it's clear: we have a function with some params, so I use @param tag. But I can't do that if we consider controller functions as they do not have any params (again: I use input class. Instead of /setPrice/1000/ I use /setPrice/?price=1000).

Thanks in advance