Welcome Guest, Not a member yet? Register   Sign In
How do I prevent direct controller function access?
#12

[eluser]Aken[/eluser]
You shouldn't combine those IF checks together, though, because they aren't related.

I never use a controller method strictly for accepting form submissions -- I always use the same method that you'd view through the URL, and I use normal Form validation library stuff to process it. I then use the ajax check to determine what type of data needs to be output - either a normal view load if through the browser, or a JSON or similar response if through ajax.


Messages In This Thread
How do I prevent direct controller function access? - by El Forum - 12-20-2012, 10:16 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 04:15 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 06:18 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 06:21 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 07:54 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 08:08 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 08:59 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:23 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:51 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:57 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 10:02 PM
How do I prevent direct controller function access? - by El Forum - 12-22-2012, 01:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB