Welcome Guest, Not a member yet? Register   Sign In
Where to Put Captcha Code?
#1

[eluser]Glowball[/eluser]
Hi all, I have a site with a form on every page, and that form needs a captcha. The code for the form is in a single view template used by all pages, so it is only in one place. I'd rather not put the captcha-building code in a view, but I'm not sure where else to put it.

Some of my controllers have multiple functions, so it seems like it would be best to put the code in the constructor for each controller. But then it seems that I can't return the captcha image code from the constructor to pass it to the view.

Do I need to put the code in each function? It seems so redundant. What would you do?


Messages In This Thread
Where to Put Captcha Code? - by El Forum - 10-01-2008, 11:09 AM
Where to Put Captcha Code? - by El Forum - 10-01-2008, 11:50 AM
Where to Put Captcha Code? - by El Forum - 10-01-2008, 11:56 AM
Where to Put Captcha Code? - by El Forum - 10-01-2008, 12:18 PM
Where to Put Captcha Code? - by El Forum - 11-22-2008, 02:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB