Welcome Guest, Not a member yet? Register   Sign In
If statements in Controller?
#10

[eluser]jedd[/eluser]
[quote author="industrial" date="1256231582"]
... but where can I find more info about this specific feature regarding giving funcion variables an initial FALSE value?
[/quote]

You can apply any default value using that syntax. It means that if you call the function using a URL that doesn't include one or more of the parameters its expecting, it will use the default values instead.

I tried to find where this is described in the CI manual, but could not .. which is a touch weird. In any case, it's fairly straightforward, and you can easily play with it with a couple of echos in one of your functions, then throwing different URLs into your browser.


Messages In This Thread
If statements in Controller? - by El Forum - 10-20-2009, 12:27 PM
If statements in Controller? - by El Forum - 10-20-2009, 12:33 PM
If statements in Controller? - by El Forum - 10-20-2009, 01:19 PM
If statements in Controller? - by El Forum - 10-20-2009, 01:37 PM
If statements in Controller? - by El Forum - 10-21-2009, 09:47 AM
If statements in Controller? - by El Forum - 10-21-2009, 11:03 AM
If statements in Controller? - by El Forum - 10-21-2009, 12:31 PM
If statements in Controller? - by El Forum - 10-21-2009, 03:24 PM
If statements in Controller? - by El Forum - 10-22-2009, 06:13 AM
If statements in Controller? - by El Forum - 10-22-2009, 08:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB